hopefully fix shutdown hang and tweak win compile

This commit is contained in:
Marcos Pinto 2007-11-15 04:38:35 +00:00
parent abc9534f7f
commit b95e3c4988
3 changed files with 3 additions and 2 deletions

View File

@ -135,7 +135,7 @@ if not OS == "win":
sysconfig.get_config_vars()["OPT"] = ' '.join(cv_opt.split())
else:
boosttype = 'mt'
EXTRA_COMPILE_ARGS = [ '-DBOOST_WINDOWS',
EXTRA_COMPILE_ARGS = [ '-O2', '-DBOOST_WINDOWS',
'-Wno-missing-braces',
'-DWIN32_LEAN_AND_MEAN',
'-D_WIN32_WINNT=0x0500',

View File

@ -435,7 +435,7 @@ static PyObject *torrent_quit(PyObject *self, PyObject *args)
delete M_settings;
session_proxy sp = M_ses->abort();
printf("core: shutting down session...\r\n");
delete M_ses; // 100% CPU...
delete M_ses;
Py_DECREF(M_constants);
printf("core shut down.\r\n");

View File

@ -1644,6 +1644,7 @@ want to remove all seeding torrents?")):
self.shutdown()
def shutdown(self):
gtk.gdk.threads_enter()
self.window.hide()
self.save_column_widths()
self.save_window_settings()