From c9ba1cd207444e1d281f088dc93ee888a3588ce0 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Thu, 16 Aug 2007 01:35:43 +0000 Subject: [PATCH] require there to be active torrents for dht checking to take place --- src/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.py b/src/interface.py index 3f1d25f72..1c94c2467 100644 --- a/src/interface.py +++ b/src/interface.py @@ -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