417 if conn: |
417 if conn: |
418 conn.close() |
418 conn.close() |
419 fx, lng, fn, data = self.runningJob |
419 fx, lng, fn, data = self.runningJob |
420 if fx != 'INIT' and lng == lang: |
420 if fx != 'INIT' and lng == lang: |
421 self.services[(fx, lng)][3](fx, lng, fn, self.tr( |
421 self.services[(fx, lng)][3](fx, lng, fn, self.tr( |
422 'Erics background client disconnected because of an' |
422 "Eric's background client disconnected because of an" |
423 ' unknown reason.') |
423 " unknown reason.") |
424 ) |
424 ) |
425 self.isWorking = None |
425 self.isWorking = None |
426 |
426 |
427 res = E5MessageBox.yesNo( |
427 res = E5MessageBox.yesNo( |
428 None, |
428 None, |
436 self.restartService(lang) |
436 self.restartService(lang) |
437 |
437 |
438 def shutdown(self): |
438 def shutdown(self): |
439 """ |
439 """ |
440 Public method to cleanup the connections and processes when eric is |
440 Public method to cleanup the connections and processes when eric is |
441 shuting down. |
441 shutting down. |
442 """ |
442 """ |
|
443 self.close() |
|
444 |
443 for connection in self.connections.values(): |
445 for connection in self.connections.values(): |
444 # Prevent calling of on_disconnectSocket |
446 # Prevent calling of on_disconnectSocket |
445 connection.blockSignals(True) |
447 connection.blockSignals(True) |
446 connection.close() |
448 connection.close() |
447 |
449 |