Commits

Anonymous committed 1c2d202

reset host

Comments (0)

Files changed (1)

flaskext/mail/connection.py

     def __exit__(self, exc_type, exc_value, tb):
         if self.host:
             self.host.quit()
-
-        self.num_emails = 0
     
     def configure_host(self):
         
             
             self.num_emails = 0
             if self.host:
+                self.host.quit()
                 self.host = self.configure_host()
 
     def send_message(self, *args, **kwargs):