mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2024-11-25 03:00:15 +00:00
Wait for update timers to stop before exiting
This commit is contained in:
parent
3f0f4b1bfa
commit
1672255cff
1 changed files with 2 additions and 1 deletions
|
@ -214,7 +214,7 @@ class TransmissionGUI(xbmcgui.WindowXMLDialog):
|
|||
def close(self):
|
||||
if self.timer:
|
||||
self.timer.cancel()
|
||||
self.timer = None
|
||||
self.timer.join()
|
||||
super(TransmissionGUI, self).close()
|
||||
|
||||
|
||||
|
@ -270,6 +270,7 @@ class TorrentInfoGUI(xbmcgui.WindowXMLDialog):
|
|||
def close(self):
|
||||
if self.timer:
|
||||
self.timer.cancel()
|
||||
self.timer.join()
|
||||
super(TorrentInfoGUI, self).close()
|
||||
def onAction(self, action):
|
||||
if (action.getButtonCode() in CANCEL_DIALOG) or (action.getId() == KEY_MENU_ID):
|
||||
|
|
Loading…
Reference in a new issue