• Colomban Wendling's avatar
    Mails: properly pop eaten item even if the server is not started · 3c87d5ae
    Colomban Wendling authored
    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.
    3c87d5ae
mails.py 3.89 KB