Stop IPC timeout timer while executing command.
This hopefully helps with #1183.
This commit is contained in:
parent
d84b15d35c
commit
364d069e74
@ -296,7 +296,7 @@ class IPCServer(QObject):
|
|||||||
# active for some reason.
|
# active for some reason.
|
||||||
log.ipc.warning("In on_ready_read with None socket!")
|
log.ipc.warning("In on_ready_read with None socket!")
|
||||||
return
|
return
|
||||||
self._timer.start()
|
self._timer.stop()
|
||||||
while self._socket is not None and self._socket.canReadLine():
|
while self._socket is not None and self._socket.canReadLine():
|
||||||
data = bytes(self._socket.readLine())
|
data = bytes(self._socket.readLine())
|
||||||
self.got_raw.emit(data)
|
self.got_raw.emit(data)
|
||||||
@ -342,6 +342,7 @@ class IPCServer(QObject):
|
|||||||
|
|
||||||
cwd = json_data.get('cwd', None)
|
cwd = json_data.get('cwd', None)
|
||||||
self.got_args.emit(json_data['args'], json_data['target_arg'], cwd)
|
self.got_args.emit(json_data['args'], json_data['target_arg'], cwd)
|
||||||
|
self._timer.start()
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def on_timeout(self):
|
def on_timeout(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user