mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Prevent set_DHT() from starting DHT if it's already started.
This commit is contained in:
parent
47aa99eb6d
commit
93a0945915
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue