Skip to content

Commit 382841b

Browse files
authored
Merge pull request #54 from juwis/Bugfix-log-messages
Fix for #48
2 parents 85a5cb6 + 1c768ca commit 382841b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webserver/HuConJsonRpc.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ def _run_file(cls, filename):
150150

151151
cls._current_proc.poll()
152152

153+
# Wait until the queue is empty or the timout occured
154+
timeout = 0
155+
while (cls._log.empty() is False) and (timeout < 30):
156+
time.sleep(0.1)
157+
timeout = timeout + 1
158+
153159
# ----------------------------------------------------------------------------------------------------------------------
154160
# JSON RPC API Methods
155161
# ----------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)