mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
tr_peerMgrHasConnections(): take webseeds into account, as suggested by BentMyWookie
This commit is contained in:
parent
effb78d674
commit
25a20d172d
1 changed files with 1 additions and 1 deletions
|
@ -1357,7 +1357,7 @@ tr_peerMgrHasConnections( const tr_peerMgr * manager,
|
|||
managerLock( manager );
|
||||
|
||||
t = getExistingTorrent( (tr_peerMgr*)manager, torrentHash );
|
||||
ret = t && tr_ptrArraySize( t->peers );
|
||||
ret = t && ( !tr_ptrArrayEmpty( t->peers ) || !tr_ptrArrayEmpty( t->webseeds ) );
|
||||
|
||||
managerUnlock( manager );
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue