mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
change shutdown from using abort
This commit is contained in:
parent
9eaf2e602a
commit
657055cab1
1 changed files with 6 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue