Revert "Remove test_ipc workaround again."
This reverts commit f4d2e0746e
.
This commit is contained in:
parent
46b28387db
commit
3a5cd8f3ff
@ -140,6 +140,10 @@ class IPCServer(QObject):
|
||||
@pyqtSlot(int)
|
||||
def on_error(self, err):
|
||||
"""Convenience method which calls _socket_error on an error."""
|
||||
if self._socket is None:
|
||||
# Sometimes this gets called from stale sockets, especially in
|
||||
# tests.
|
||||
return
|
||||
self._timer.stop()
|
||||
log.ipc.debug("Socket error {}: {}".format(
|
||||
self._socket.error(), self._socket.errorString()))
|
||||
|
Loading…
Reference in New Issue
Block a user