Utilities/BackgroundService.py

branch
BgService
changeset 3422
ecfe8271cc73
parent 3417
5a93c6cdc989
child 3484
645c12de6b0c
equal deleted inserted replaced
3418:27ab90e0f25e 3422:ecfe8271cc73
289 289
290 def shutdown(self): 290 def shutdown(self):
291 """ 291 """
292 Cleanup the connections and processes when Eric is shuting down. 292 Cleanup the connections and processes when Eric is shuting down.
293 """ 293 """
294 for connection in self.connections.values(): 294 # Make copy of dictionary values because the list is changed by
295 # on_disconnectSocket
296 for connection in list(self.connections.values()):
295 if connection: 297 if connection:
296 connection.close() 298 connection.close()
297 299
298 for process in self.processes: 300 for process in self.processes:
299 if isinstance(process, QProcess): 301 if isinstance(process, QProcess):

eric ide

mercurial