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'
|
||||
socket.writeData(line.encode('utf-8'))
|
||||
socket.waitForBytesWritten(WRITE_TIMEOUT)
|
||||
if socket.error() != QLocalSocket.UnknownError:
|
||||
if socket.error() != QLocalSocket.UnknownSocketError:
|
||||
_socket_error("writing to running instance", socket)
|
||||
else:
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user