summaryrefslogtreecommitdiff
path: root/src/leap/common
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-07-28 16:26:14 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-07-28 16:26:14 -0300
commit08779379337ff77729c9d2ebdb6f4aaf486d38a7 (patch)
tree581304c03bc9f61af8c9c8dcd910847827b0f32e /src/leap/common
parenta119dd4fa2fc4a14577fd2d6e32dff950d934193 (diff)
[bug] Consider events flag when ensuring client
Change EventsClientThread behavior so it won't start anymore if the events flag is set to False
Diffstat (limited to 'src/leap/common')
-rw-r--r--src/leap/common/events/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/common/events/client.py b/src/leap/common/events/client.py
index 1744341..8d8d522 100644
--- a/src/leap/common/events/client.py
+++ b/src/leap/common/events/client.py
@@ -466,7 +466,7 @@ class EventsClientThread(threading.Thread, EventsClient):
Make sure the events client thread is started.
"""
with self._lock:
- if not self.is_alive():
+ if flags.EVENTS_ENABLED and not self.is_alive():
self.daemon = True
self.start()
self._initialized.wait()