Fix an exception related to handling IPC connections.
See http://paste.the-compiler.org/view/77f58b69
This commit is contained in:
parent
8e713abadf
commit
f705194c00
@ -128,7 +128,7 @@ class IPCServer(QObject):
|
|||||||
log.ipc.warn("In on_ready_read with None socket!")
|
log.ipc.warn("In on_ready_read with None socket!")
|
||||||
return
|
return
|
||||||
self._timer.start()
|
self._timer.start()
|
||||||
while self._socket.canReadLine():
|
while self._socket is not None and self._socket.canReadLine():
|
||||||
data = bytes(self._socket.readLine())
|
data = bytes(self._socket.readLine())
|
||||||
log.ipc.debug("Read from socket: {}".format(data))
|
log.ipc.debug("Read from socket: {}".format(data))
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user