mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Merge pull request #275 from YunoHost/free-the-cpu
wait 1s for message in call_async_output
This commit is contained in:
commit
5e1ed4c331
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ def call_async_output(args, callback, **kwargs):
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
callback, message = log_queue.get_nowait()
|
callback, message = log_queue.get(True, 1)
|
||||||
except queue.Empty:
|
except queue.Empty:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue