projects
/
leap_pycommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a119dd4
)
[bug] Consider events flag when ensuring client
author
Victor Shyba
<victor.shyba@gmail.com>
Tue, 28 Jul 2015 19:26:14 +0000
(16:26 -0300)
committer
Victor Shyba
<victor.shyba@gmail.com>
Tue, 28 Jul 2015 19:26:14 +0000
(16:26 -0300)
Change EventsClientThread behavior so it won't start anymore if
the events flag is set to False
src/leap/common/events/client.py
patch
|
blob
|
history
diff --git
a/src/leap/common/events/client.py
b/src/leap/common/events/client.py
index
1744341
..
8d8d522
100644
(file)
--- 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()