Commits

Anonymous committed 1c2d202

reset host

  • Participants
  • Parent commits c085171
  • Branches refactoring

Comments (0)

Files changed (1)

File 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):