This repository has been archived by the owner on Jul 14, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch potential exceptions in the Stem event handler
The Stem Tor control port library starts an event notifier thread and makes callbacks to the OnionBalance daemon with new events. If an unhandled exception occurs in an event callback the event notifier thread will crash. This will prevent OnionBalance getting new descriptor updates and eventual the onion service will go offline. This commit adds a `try: except` block around both event callback functions which should gracefully handle unexpected errors in the event notifier thread.
- Loading branch information