From 1672255cff675b40512398d8c4d62d96de10ba5f Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sat, 26 Jul 2014 19:19:05 -0400 Subject: [PATCH] Wait for update timers to stop before exiting --- resources/lib/gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/gui.py b/resources/lib/gui.py index f533d93..6861a03 100644 --- a/resources/lib/gui.py +++ b/resources/lib/gui.py @@ -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):