tweak shutdown

This commit is contained in:
Marcos Pinto 2007-11-07 00:24:23 +00:00
parent 6b3065d2cf
commit 6d70add980

View File

@ -430,6 +430,10 @@ 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...