Cwtchbot doesn't tear down Tor connections? #3
Open
opened 6 months ago by decentral1se
·
0 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
You have to
ctrl-c
to stop running the bot AFAIU. And since we don't runapp.Shutdown()
&acn.Close()
(unsure if there are more clean shutdown APIs?), there are still Tor processes up and running in a listening state?I guess we could use the 'ol
os.Signal.Notify
/syscall.SIGINT/SIGTERM
trick to catch the program exit and call the shutdown APIs? Can submit a PR if I'm on the right track.