Skip to content

Commit

Permalink
fix: Sleep before thread starts!
Browse files Browse the repository at this point in the history
  • Loading branch information
giulioungaretti authored and jenshnielsen committed Aug 16, 2017
1 parent ba4648d commit 3db4248
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qcodes/monitor/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def __init__(self, *parameters, interval=1):
*parameters: Parameters to monitor
interval: How often one wants to refresh the values
"""
# let the thread start
time.sleep(0.01)
super().__init__()
self.loop = None
self._monitor(*parameters, interval=1)
Expand Down Expand Up @@ -157,7 +159,7 @@ def _monitor(self, *parameters, interval=1):
self.start()

# let the thread start
time.sleep(0.001)
time.sleep(0.01)

log.debug("Start monitoring server")
self._add_task(server)
Expand Down

0 comments on commit 3db4248

Please sign in to comment.