mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
blah. add self.
This commit is contained in:
parent
bb1f887a12
commit
4f697de7f3
1 changed files with 3 additions and 3 deletions
|
@ -992,15 +992,15 @@ class DelugeGTK:
|
||||||
if dht_peers == -1:
|
if dht_peers == -1:
|
||||||
dht_peers = '?'
|
dht_peers = '?'
|
||||||
if dht_peers == 0:
|
if dht_peers == 0:
|
||||||
dht_timer += 1
|
self.dht_timer += 1
|
||||||
if dht_timer == 15:
|
if self.dht_timer == 15:
|
||||||
#dht has been on for 15 seconds but has 0 nodes
|
#dht has been on for 15 seconds but has 0 nodes
|
||||||
#we probably have a corrupted dht.state file,
|
#we probably have a corrupted dht.state file,
|
||||||
#so let's clean things up
|
#so let's clean things up
|
||||||
self.manager.set_DHT(False)
|
self.manager.set_DHT(False)
|
||||||
os.remove(common.CONFIG_DIR + '/dht.state')
|
os.remove(common.CONFIG_DIR + '/dht.state')
|
||||||
self.manager.set_DHT(True)
|
self.manager.set_DHT(True)
|
||||||
dht_timer = 0
|
self.dht_timer = 0
|
||||||
else:
|
else:
|
||||||
dht_peers = str(dht_peers)
|
dht_peers = str(dht_peers)
|
||||||
self.statusbar_temp_msg = self.statusbar_temp_msg + \
|
self.statusbar_temp_msg = self.statusbar_temp_msg + \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue