mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
Make sure pending gtk events are processed before quitting gtkui.
This commit is contained in:
parent
2a0048afbb
commit
848b14605e
1 changed files with 2 additions and 3 deletions
|
@ -246,9 +246,8 @@ class GtkUI(object):
|
|||
component.stop()
|
||||
|
||||
# Process any pending gtk events since the mainloop has been quit
|
||||
if not deluge.common.windows_check():
|
||||
while gtk.events_pending() and reactor.running:
|
||||
reactor.doIteration(0)
|
||||
while gtk.events_pending():
|
||||
gtk.main_iteration(0)
|
||||
|
||||
# Shutdown all components
|
||||
component.shutdown()
|
||||
|
|
Loading…
Add table
Reference in a new issue