Wait for update timers to stop before exiting

This commit is contained in:
Correl Roush 2014-07-26 19:19:05 -04:00
parent 3f0f4b1bfa
commit 1672255cff

View file

@ -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):