Fix check for QLocalSocket.UnknownSocketError
This commit is contained in:
parent
8195f1875e
commit
93dd3d8d9d
@ -69,7 +69,7 @@ def send_to_running_instance(cmdlist):
|
|||||||
line = json.dumps(cmdlist) + '\n'
|
line = json.dumps(cmdlist) + '\n'
|
||||||
socket.writeData(line.encode('utf-8'))
|
socket.writeData(line.encode('utf-8'))
|
||||||
socket.waitForBytesWritten(WRITE_TIMEOUT)
|
socket.waitForBytesWritten(WRITE_TIMEOUT)
|
||||||
if socket.error() != QLocalSocket.UnknownError:
|
if socket.error() != QLocalSocket.UnknownSocketError:
|
||||||
_socket_error("writing to running instance", socket)
|
_socket_error("writing to running instance", socket)
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user