Fix an exception related to handling IPC connections.

See http://paste.the-compiler.org/view/77f58b69
This commit is contained in:
Florian Bruhin 2014-11-02 21:53:12 +01:00
parent 8e713abadf
commit f705194c00

View File

@ -128,7 +128,7 @@ class IPCServer(QObject):
log.ipc.warn("In on_ready_read with None socket!")
return
self._timer.start()
while self._socket.canReadLine():
while self._socket is not None and self._socket.canReadLine():
data = bytes(self._socket.readLine())
log.ipc.debug("Read from socket: {}".format(data))
try: