Call t.join() to wait for the web thread to stop before cleaning up the onion. Seems to fix periodic race condition segfault

This commit is contained in:
Miguel Jacq 2025-02-13 10:13:28 +11:00
parent a9e6870ce3
commit 6a64f74791
No known key found for this signature in database
GPG Key ID: 59B3F0C24135C6A9

View File

@ -541,6 +541,7 @@ def main(cwd=None):
finally:
# Shutdown
web.cleanup()
t.join()
onion.cleanup()