From 047a32ef9f250260be85c66b6c7e3e5626896813 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 6 Nov 2007 22:27:07 +0000 Subject: [PATCH] testing some shutdown tweaks --- src/deluge_core.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 4f103e215..82e76a3ff 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -430,10 +430,7 @@ static PyObject *torrent_quit(PyObject *self, PyObject *args) M_settings->stop_tracker_timeout = 3; M_settings->tracker_receive_timeout = 3; M_ses->set_settings(*M_settings); - printf("core: removing torrents...\r\n"); - delete M_torrents; - printf("core: removing settings...\r\n"); - delete M_settings; + session_proxy sp = M_ses->abort(); printf("core: shutting down session...\r\n"); delete M_ses; // 100% CPU... Py_DECREF(M_constants);