From 657055cab10d36124715f94f33aa1b8efbaeedaf Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 12 Dec 2007 20:22:15 +0000 Subject: [PATCH] change shutdown from using abort --- src/deluge_core.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/deluge_core.cpp b/src/deluge_core.cpp index 6d1b2b218..f23475a2c 100644 --- a/src/deluge_core.cpp +++ b/src/deluge_core.cpp @@ -450,7 +450,12 @@ static PyObject *torrent_init(PyObject *self, PyObject *args) static PyObject *torrent_quit(PyObject *self, PyObject *args) { - M_ses->abort(); + printf("core: removing torrents...\r\n"); + delete M_torrents; + printf("core: removing settings...\r\n"); + delete M_settings; + printf("core: shutting down session...\r\n"); + delete M_ses; // 100% CPU... Py_DECREF(M_constants); printf("core shut down.\r\n");