trying a little session close rearranging

This commit is contained in:
Marcos Pinto 2007-06-09 01:32:54 +00:00
parent 687df9590c
commit 881a85be20
1 changed files with 2 additions and 2 deletions

View File

@ -357,10 +357,10 @@ static PyObject *torrent_quit(PyObject *self, PyObject *args)
{ {
M_settings->stop_tracker_timeout = 5; M_settings->stop_tracker_timeout = 5;
M_ses->set_settings(*M_settings); M_ses->set_settings(*M_settings);
printf("core: removing settings...\r\n");
delete M_settings;
printf("core: removing torrents...\r\n"); printf("core: removing torrents...\r\n");
delete M_torrents; delete M_torrents;
printf("core: removing settings...\r\n");
delete M_settings;
printf("core: shutting down session...\r\n"); printf("core: shutting down session...\r\n");
delete M_ses; // 100% CPU... delete M_ses; // 100% CPU...
Py_DECREF(M_constants); Py_DECREF(M_constants);