mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
Prevent set_DHT() from starting DHT if it's already started.
This commit is contained in:
parent
47aa99eb6d
commit
93a0945915
@ -764,7 +764,7 @@ class Manager:
|
||||
PREF_FUNCTIONS[pref](self.get_pref(pref))
|
||||
|
||||
def set_DHT(self, start=False):
|
||||
if start == True:
|
||||
if start == True and self.dht_running != True:
|
||||
print "Starting DHT..."
|
||||
deluge_core.start_DHT(os.path.join(self.base_dir, DHT_FILENAME))
|
||||
self.dht_running = True
|
||||
|
Loading…
x
Reference in New Issue
Block a user