mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
changed the order of torrent_quit to properly shutdown the session
This commit is contained in:
parent
8f5a4ad319
commit
9dcbbdaadf
1 changed files with 2 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue