require there to be active torrents for dht checking to take place

This commit is contained in:
Marcos Pinto 2007-08-16 01:35:43 +00:00
parent 00a88b0ff1
commit c9ba1cd207
1 changed files with 1 additions and 1 deletions

View File

@ -993,7 +993,7 @@ class DelugeGTK:
dht_peers = '?'
if dht_peers == 0:
self.dht_timer += 1
if self.dht_timer == 15:
if (self.dht_timer == 15) and (self.manager.get_state()['num_peers'] > 0):
#dht has been on for 15 seconds but has 0 nodes
#we probably have a corrupted dht.state file,
#so let's clean things up