mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 10:28:39 +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))
|
PREF_FUNCTIONS[pref](self.get_pref(pref))
|
||||||
|
|
||||||
def set_DHT(self, start=False):
|
def set_DHT(self, start=False):
|
||||||
if start == True:
|
if start == True and self.dht_running != True:
|
||||||
print "Starting DHT..."
|
print "Starting DHT..."
|
||||||
deluge_core.start_DHT(os.path.join(self.base_dir, DHT_FILENAME))
|
deluge_core.start_DHT(os.path.join(self.base_dir, DHT_FILENAME))
|
||||||
self.dht_running = True
|
self.dht_running = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue