From e40398652c011c087280e0778e182031ec2e4e7f Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Sat, 4 Aug 2007 15:29:55 +0000 Subject: [PATCH] Properly stop DHT in torrent_stop_DHT() in deluge_core.cpp. --- src/deluge_core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 80374435b..7891401b5 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -1368,6 +1368,8 @@ static PyObject *torrent_stop_DHT(PyObject *self, PyObject *args) printf("An error occured in saving DHT\r\n"); std::cerr << e.what() << "\n"; } + + M_ses->stop_dht(); Py_INCREF(Py_None); return Py_None; }