Skip to content

Commit

Permalink
use join to wait for thread
Browse files Browse the repository at this point in the history
  • Loading branch information
snubba committed Oct 31, 2024
1 parent fd02c80 commit b601f22
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pysyncobj/syncobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,7 @@ def destroy_synchronous(self):
Correctly destroy SyncObj. Stop autoTickThread, close connections, etc. and ensure the threads are gone.
"""
self.destroy()
count = 0
while self.tick_thread_alive():
time.sleep(.1)
count += 1
self.__thread.join()

def waitReady(self):
"""
Expand Down

0 comments on commit b601f22

Please sign in to comment.