Source

thg-work / TortoiseHgOverlayServer.py

Diff from to

TortoiseHgOverlayServer.py

 
 class MainWindow:
     def __init__(self):
+        self.pipethread = None
         msg_TaskbarRestart = RegisterWindowMessage("TaskbarCreated");
         message_map = {
                 msg_TaskbarRestart: self.OnRestart,
             return True
 
     def start_pipe_server(self):
+        if self.pipethread is not None:
+            return
+
         def servepipe():
             self.svc = PipeServer(self.hwnd)
             self.svc.SvcDoRun()