ipc: Disconnect properly from server.
This commit is contained in:
parent
a1cb47936a
commit
6dbd669efe
@ -279,6 +279,9 @@ def send_to_running_instance(socketname, command):
|
|||||||
if socket.error() != QLocalSocket.UnknownSocketError:
|
if socket.error() != QLocalSocket.UnknownSocketError:
|
||||||
_socket_error("writing to running instance", socket)
|
_socket_error("writing to running instance", socket)
|
||||||
else:
|
else:
|
||||||
|
socket.disconnectFromServer()
|
||||||
|
if socket.state() != QLocalSocket.UnconnectedState:
|
||||||
|
socket.waitForDisconnected(100)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
if socket.error() not in (QLocalSocket.ConnectionRefusedError,
|
if socket.error() not in (QLocalSocket.ConnectionRefusedError,
|
||||||
|
Loading…
Reference in New Issue
Block a user