659 Private slot to flush the queue. |
659 Private slot to flush the queue. |
660 """ |
660 """ |
661 if self.__mainDebugger: |
661 if self.__mainDebugger: |
662 # Send commands that were waiting for the connection. |
662 # Send commands that were waiting for the connection. |
663 for cmd in self.queue: |
663 for cmd in self.queue: |
664 self.__writeJsonCommandToSocket(cmd, self.__connections[self.__mainDebugger]) |
664 self.__writeJsonCommandToSocket( |
|
665 cmd, self.__connections[self.__mainDebugger] |
|
666 ) |
665 |
667 |
666 self.queue = [] |
668 self.queue = [] |
667 |
669 |
668 def shutdown(self): |
670 def shutdown(self): |
669 """ |
671 """ |