mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 08:03:40 +00:00
hopefully fix shutdown hang and tweak win compile
This commit is contained in:
parent
abc9534f7f
commit
b95e3c4988
2
setup.py
2
setup.py
@ -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',
|
||||
|
@ -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");
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user