From 9dcbbdaadfcdca9cc03a922f903e353b2ce38295 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Fri, 8 Jun 2007 22:25:53 +0000 Subject: [PATCH] changed the order of torrent_quit to properly shutdown the session --- src/deluge_core.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index b5590caf0..082d7c95e 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -355,15 +355,14 @@ static PyObject *torrent_init(PyObject *self, PyObject *args) static PyObject *torrent_quit(PyObject *self, PyObject *args) { - printf("core: shutting down session...\r\n"); M_settings->stop_tracker_timeout = 5; M_ses->set_settings(*M_settings); - delete M_ses; // 100% CPU... printf("core: removing settings...\r\n"); delete M_settings; printf("core: removing torrents...\r\n"); delete M_torrents; - + printf("core: shutting down session...\r\n"); + delete M_ses; // 100% CPU... Py_DECREF(M_constants); printf("core shut down.\r\n");