start new instance if existing instance hung
This commit is contained in:
parent
591015417b
commit
346dfe1c7f
@ -152,7 +152,8 @@ class AnkiApp(QApplication):
|
||||
return False
|
||||
sock.write(txt)
|
||||
if not sock.waitForBytesWritten(self.TMOUT):
|
||||
raise Exception("existing instance not emptying")
|
||||
# existing instance running but hung
|
||||
return False
|
||||
sock.disconnectFromServer()
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user