1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-10-27 00:57:47 +08:00

closes #152, with future work needed to help Windows mutli-threaded applications

This commit is contained in:
Joel Bender
2017-12-22 10:15:26 -05:00
4 changed files with 211 additions and 15 deletions

View File

@@ -142,6 +142,9 @@ def run(spin=SPIN, sigterm=stop, sigusr1=print_stack):
time.sleep(sleeptime)
delta -= sleeptime
# delta should be no more than the spin value
delta = min(delta, spin)
# if there are deferred functions, use a small delta
if deferredFns:
delta = min(delta, 0.001)