Commits

Steve Borho committed 4dfacfc

overlay: catch ValueError from thread2.terminate() call (refs #548)

Comments (0)

Files changed (1)

TortoiseHgOverlayServer.py

         while cnt <= max_try and self.pipethread.isAlive():
             print "testing pipe [try %d] ..." % cnt
             try:
-                self.pipethread.terminate()
+                try:
+                    self.pipethread.terminate()
+                except ValueError:
+                    pass
                 win32pipe.CallNamedPipe(PIPENAME, '', PIPEBUFSIZE, 0)
             except:
                 logger.msg(traceback.format_exc())