mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-22 01:58:45 +00:00
tweak shutdown
This commit is contained in:
parent
6b3065d2cf
commit
6d70add980
1 changed files with 4 additions and 0 deletions
|
@ -430,6 +430,10 @@ static PyObject *torrent_quit(PyObject *self, PyObject *args)
|
||||||
M_settings->stop_tracker_timeout = 3;
|
M_settings->stop_tracker_timeout = 3;
|
||||||
M_settings->tracker_receive_timeout = 3;
|
M_settings->tracker_receive_timeout = 3;
|
||||||
M_ses->set_settings(*M_settings);
|
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();
|
session_proxy sp = M_ses->abort();
|
||||||
printf("core: shutting down session...\r\n");
|
printf("core: shutting down session...\r\n");
|
||||||
delete M_ses; // 100% CPU...
|
delete M_ses; // 100% CPU...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue