Merge pull request #1974 from onionshare/mig/fix-thread-segfault

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:
Saptak Sengupta 2025-02-17 19:25:06 +05:30 committed by GitHub
commit 0eb295a010
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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