Fix check for QLocalSocket.UnknownSocketError

This commit is contained in:
Florian Bruhin 2014-10-13 07:49:26 +02:00
parent 8195f1875e
commit 93dd3d8d9d

View File

@ -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