Skip to content

Commit

Permalink
Check Host before share
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan386 committed Jan 29, 2015
1 parent b86b4af commit be5e3c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shareaza/HostCache.cpp
Expand Up @@ -1596,7 +1596,9 @@ bool CHostCacheHost::CanQuote(const DWORD tNow) const
// A host isn't dead...
( m_nFailures == 0 ) &&
// ...and host isn't expired...
( ! IsExpired( tNow ) );
( ! IsExpired( tNow ) ) &&
// ...and we checked this host...
( m_nUserLimit > 0 && m_bCheckedLocally );
// ...then we can tell about it to others!
}

Expand Down

0 comments on commit be5e3c3

Please sign in to comment.