From b6822f446adc7cfdc345f75e4cf7a07441b28a38 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 20 Dec 2008 04:33:47 +0000 Subject: [PATCH] Fix saving dht state --- deluge/core/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index c3ab85670..e17c5af4e 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -130,7 +130,7 @@ class Core(component.Component): def stop(self): # Save the DHT state if necessary if self.config["dht"]: - self.__save_dht_state() + self.save_dht_state() # Save the libtorrent session state self.__save_session_state() @@ -156,7 +156,7 @@ class Core(component.Component): except Exception, e: log.warning("Failed to load lt state: %s", e) - def __save_dht_state(self): + def save_dht_state(self): """Saves the dht state to a file""" try: dht_data = open(deluge.common.get_default_config_dir("dht.state"), "wb")