From 4f697de7f305d6892bd12ef276470d5fb6c80d7a Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 15 Aug 2007 02:53:40 +0000 Subject: [PATCH] blah. add self. --- src/interface.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/interface.py b/src/interface.py index a60600b55..69950d5a5 100644 --- a/src/interface.py +++ b/src/interface.py @@ -992,15 +992,15 @@ class DelugeGTK: if dht_peers == -1: dht_peers = '?' if dht_peers == 0: - dht_timer += 1 - if dht_timer == 15: + self.dht_timer += 1 + if self.dht_timer == 15: #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 self.manager.set_DHT(False) os.remove(common.CONFIG_DIR + '/dht.state') self.manager.set_DHT(True) - dht_timer = 0 + self.dht_timer = 0 else: dht_peers = str(dht_peers) self.statusbar_temp_msg = self.statusbar_temp_msg + \