mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-10 18:36:34 +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())
|
sysconfig.get_config_vars()["OPT"] = ' '.join(cv_opt.split())
|
||||||
else:
|
else:
|
||||||
boosttype = 'mt'
|
boosttype = 'mt'
|
||||||
EXTRA_COMPILE_ARGS = [ '-DBOOST_WINDOWS',
|
EXTRA_COMPILE_ARGS = [ '-O2', '-DBOOST_WINDOWS',
|
||||||
'-Wno-missing-braces',
|
'-Wno-missing-braces',
|
||||||
'-DWIN32_LEAN_AND_MEAN',
|
'-DWIN32_LEAN_AND_MEAN',
|
||||||
'-D_WIN32_WINNT=0x0500',
|
'-D_WIN32_WINNT=0x0500',
|
||||||
|
@ -435,7 +435,7 @@ static PyObject *torrent_quit(PyObject *self, PyObject *args)
|
|||||||
delete M_settings;
|
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;
|
||||||
Py_DECREF(M_constants);
|
Py_DECREF(M_constants);
|
||||||
|
|
||||||
printf("core shut down.\r\n");
|
printf("core shut down.\r\n");
|
||||||
|
@ -1644,6 +1644,7 @@ want to remove all seeding torrents?")):
|
|||||||
self.shutdown()
|
self.shutdown()
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
|
gtk.gdk.threads_enter()
|
||||||
self.window.hide()
|
self.window.hide()
|
||||||
self.save_column_widths()
|
self.save_column_widths()
|
||||||
self.save_window_settings()
|
self.save_window_settings()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user