Skip to content

Commit

Permalink
fix: timer interval set to int
Browse files Browse the repository at this point in the history
  • Loading branch information
martynia committed Nov 6, 2023
1 parent 0a2aabd commit a53780b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Pilot/pilotTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ def wrapper(self, *args, **kwargs):

class RepeatingTimer(Timer):
def run(self):
print("self.interval:", self.interval, "type: ", type(self.interval), file=sys.stderr)
while not self.finished.wait(self.interval):
self.function(*self.args, **self.kwargs)

Expand All @@ -542,8 +541,6 @@ def __init__(self, senderFunc, bufsize=10, autoflush=10):
"""

self._rlock = RLock()
print(">>>>>>>>> autoflush %s" % autoflush)
print(type(autoflush))
if autoflush > 0:
self._timer = RepeatingTimer(autoflush, self.flush)
self._timer.start()
Expand Down

0 comments on commit a53780b

Please sign in to comment.