Mails: properly pop eaten item even if the server is not started
This fixes ThreadedSMTP.quit() when the connection to the server is down as Queue.join() will wait for all tasks to be popped and accounted for, but we wouldn't account for the fake (empty) task because the connection to the server would not be open. So, properly differentiate a closed connection from a queue timeout.
Showing
Please register or sign in to comment