mirror of
https://github.com/kiviktnm/decman.git
synced 2026-09-19 12:08:28 +00:00
Prevent BlockingOIError from being raised when echonig large amounts of output
This commit is contained in:
@@ -922,11 +922,11 @@ class _OutputCapturingThread(threading.Thread):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while not self.done and not self._stream.closed:
|
while not self.done and not self._stream.closed:
|
||||||
output = self._stream.read()
|
output = self._stream.read(1000)
|
||||||
if output:
|
if output:
|
||||||
output = output.decode()
|
output = output.decode()
|
||||||
self.output += output
|
self.output += output
|
||||||
print(output, end="")
|
print(output, end="", flush=True)
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user