Sleep during threads to avoid loops that run infinitely
This commit is contained in:
parent
ac249716f7
commit
9ef3be22e8
|
@ -720,6 +720,9 @@ class HazelManager(Thread):
|
|||
self.squirrel.send_neighbours()
|
||||
self.last_neighbour = time.time()
|
||||
|
||||
# Avoid infinite loops
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
class Inondator(Thread):
|
||||
"""
|
||||
|
@ -740,6 +743,9 @@ class Inondator(Thread):
|
|||
# inundate
|
||||
self.squirrel.main_inundation()
|
||||
|
||||
# Avoid infinite loops
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
class Message:
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue