Merge pull request #275 from YunoHost/free-the-cpu

wait 1s for message in call_async_output
This commit is contained in:
Alexandre Aubin 2021-05-27 16:47:34 +02:00 committed by GitHub
commit 5e1ed4c331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ def call_async_output(args, callback, **kwargs):
while True:
try:
callback, message = log_queue.get_nowait()
callback, message = log_queue.get(True, 1)
except queue.Empty:
break