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