Properly make the mail thread a daemon thread and properly quit it
A stupid typo lead for the mail thread not to be a daemon thread, thus preventing Python from quitting before that thread quits by itself. So properly make it a daemon thread, and as it would now actually get interrupted abruptly, register an atexit handler to cleanly quit it.
Showing
Please register or sign in to comment