1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00

tr_peerMgrHasConnections(): take webseeds into account, as suggested by BentMyWookie

This commit is contained in:
Charles Kerr 2008-06-12 16:28:39 +00:00
parent effb78d674
commit 25a20d172d

View file

@ -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;