mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
start new instance if existing instance hung
This commit is contained in:
parent
591015417b
commit
346dfe1c7f
1 changed files with 2 additions and 1 deletions
|
@ -152,7 +152,8 @@ class AnkiApp(QApplication):
|
||||||
return False
|
return False
|
||||||
sock.write(txt)
|
sock.write(txt)
|
||||||
if not sock.waitForBytesWritten(self.TMOUT):
|
if not sock.waitForBytesWritten(self.TMOUT):
|
||||||
raise Exception("existing instance not emptying")
|
# existing instance running but hung
|
||||||
|
return False
|
||||||
sock.disconnectFromServer()
|
sock.disconnectFromServer()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue