BackgroundService: Little change to close the service when shutting down.

Sat, 02 Jun 2018 18:53:35 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 02 Jun 2018 18:53:35 +0200
changeset 6321
f85288918089
parent 6318
17df7a729d94
child 6323
610b676336be

BackgroundService: Little change to close the service when shutting down.

Utilities/BackgroundService.py file | annotate | diff | comparison | revisions
--- a/Utilities/BackgroundService.py	Sat Jun 02 12:42:59 2018 +0200
+++ b/Utilities/BackgroundService.py	Sat Jun 02 18:53:35 2018 +0200
@@ -419,8 +419,8 @@
             fx, lng, fn, data = self.runningJob
             if fx != 'INIT' and lng == lang:
                 self.services[(fx, lng)][3](fx, lng, fn, self.tr(
-                    'Erics background client disconnected because of an'
-                    ' unknown reason.')
+                    "Eric's background client disconnected because of an"
+                    " unknown reason.")
                 )
             self.isWorking = None
             
@@ -438,8 +438,10 @@
     def shutdown(self):
         """
         Public method to cleanup the connections and processes when eric is
-        shuting down.
+        shutting down.
         """
+        self.close()
+        
         for connection in self.connections.values():
             # Prevent calling of on_disconnectSocket
             connection.blockSignals(True)

eric ide

mercurial