summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/leap/bitmask/gui/mainwindow.py9
-rw-r--r--src/leap/bitmask/services/eip/vpnlauncher.py1
2 files changed, 6 insertions, 4 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index 70fad204..681432b3 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -2068,9 +2068,12 @@ class MainWindow(QtGui.QMainWindow):
logger.debug('Terminating vpn')
self._backend.stop_eip(shutdown=True)
- # XXX this *has* to block, since we have some delay in vpn.terminate
- # it should receive a signal from backend that everything is clear to
- # proceed, or timeout happened.
+ # XXX this *has* to wait for a reasonable lapse, since we have some
+ # delay in vpn.terminate.
+ # For a better solution it should receive be
+ # signaled from backend that
+ # everything is clear to proceed, or timeout happened.
+ time.sleep(1.5)
self._cancel_ongoing_defers()
diff --git a/src/leap/bitmask/services/eip/vpnlauncher.py b/src/leap/bitmask/services/eip/vpnlauncher.py
index ed49ba59..dc72f276 100644
--- a/src/leap/bitmask/services/eip/vpnlauncher.py
+++ b/src/leap/bitmask/services/eip/vpnlauncher.py
@@ -127,7 +127,6 @@ class VPNLauncher(object):
if gateway_conf == leap_settings.GATEWAY_AUTOMATIC:
gateway_selector = VPNGatewaySelector(eipconfig)
- print "auto: getting from selector"
gateways = gateway_selector.get_gateways()
else:
gateways = [gateway_conf]