diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-01-21 15:57:14 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-01-21 20:31:09 +0200 |
commit | 1d24b573e8e25daa63f302d41ccff698f5c23d07 (patch) | |
tree | 771bb36d7339e1a73974e65fe159b95fa6886d89 | |
parent | 75804c013373a614ec038c5ec02b19aeae138b82 (diff) | |
download | ick2-1d24b573e8e25daa63f302d41ccff698f5c23d07.tar.gz |
Fix: return empty string from output callbacks
This prevents cliapp.runcmd from collecting all output into
a (potentially large) internal buffer, which only gets thrown away
when it returns.
-rwxr-xr-x | worker_manager | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worker_manager b/worker_manager index 3fc3220..85cd2b2 100755 --- a/worker_manager +++ b/worker_manager @@ -357,7 +357,7 @@ class Runner: self._buffers[stream_name] += data.decode('UTF-8') if len(self._buffers[stream_name]) >= self._maxbuf: self.flush() - return None + return b'' def flush(self): logging.debug('flushing: self._buffers=%r', self._buffers) |