Title: [commits] (bkirsch) [15912] fixes bug 11474 Globals.mailService.shutdown when canceling a .chex reload.
Revision
15912
Author
bkirsch
Date
2007-11-26 15:40:21 -0800 (Mon, 26 Nov 2007)

Log Message

fixes bug 11474 Globals.mailService.shutdown when canceling a .chex reload. r=Philippe

Modified Paths

Diff

Modified: trunk/chandler/application/Application.py (15911 => 15912)

--- trunk/chandler/application/Application.py	2007-11-26 23:28:15 UTC (rev 15911)
+++ trunk/chandler/application/Application.py	2007-11-26 23:40:21 UTC (rev 15912)
@@ -1113,9 +1113,13 @@
             displayInfoWhileProcessing (_(u"Checking repository..."),
                                         self.UIRepositoryView.check)
 
-        displayInfoWhileProcessing (_(u"Shutting down mail service..."),
-                                    Globals.mailService.shutdown)
+        if Globals.mailService is not None:
+            # Ensure that the Globals.mailService has been initialized before
+            # calling shutdown.
+            displayInfoWhileProcessing (_(u"Shutting down mail service..."),
+                                        Globals.mailService.shutdown)
 
+
         displayInfoWhileProcessing (_(u"Stopping wakeup service..."),
                                     Utility.stopWakeup)
 




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to