Prevent set_DHT() from starting DHT if it's already started.

This commit is contained in:
Andrew Resch 2007-06-22 09:10:32 +00:00
parent 47aa99eb6d
commit 93a0945915

View File

@ -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