From 243cb6a282085414188d351aca547965191a32a2 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Mon, 23 Jun 2014 14:41:14 -0300 Subject: Fix wait time. Use milliseconds instead of seconds. On the twisted_main.quit() we use 1/10 of a second since is enough wait. --- src/leap/bitmask/gui/mainwindow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py index 11b9acf1..5feaf610 100644 --- a/src/leap/bitmask/gui/mainwindow.py +++ b/src/leap/bitmask/gui/mainwindow.py @@ -88,7 +88,7 @@ class MainWindow(QtGui.QMainWindow): EIP_START_TIMEOUT = 60000 # in milliseconds # We give the services some time to a halt before forcing quit. - SERVICES_STOP_TIMEOUT = 20 + SERVICES_STOP_TIMEOUT = 20000 # in milliseconds def __init__(self, bypass_checks=False, start_hidden=False): """ @@ -897,7 +897,7 @@ class MainWindow(QtGui.QMainWindow): self.tr('Hello!'), self.tr('Bitmask has started in the tray.')) # we wait for the systray to be ready - QtDelayedCall(1, hello) + QtDelayedCall(1000, hello) @QtCore.Slot(int) def _tray_activated(self, reason=None): @@ -1780,4 +1780,4 @@ class MainWindow(QtGui.QMainWindow): self._backend.stop() self.close() - QtDelayedCall(1, twisted_main.quit) + QtDelayedCall(100, twisted_main.quit) -- cgit v1.2.3