Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Add sleep for 250 ms in run
Browse files Browse the repository at this point in the history
  • Loading branch information
kdheepak committed May 18, 2020
1 parent 610f806 commit fe53e01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/run.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

from os import sleep
import httpclient
import json
import mimetypes
Expand Down Expand Up @@ -73,6 +71,7 @@ proc runRun*(path: string, silent = false): int =

var error_occured = false
while not all(threads, r => r.isReady):
os.sleep(250)
for (i, t) in threads.pairs:
if t.isReady and ^t != 0:
print(&"""Something went wrong with federate `{process_names[i]}`. Please check the log files.""", sError)
Expand Down

0 comments on commit fe53e01

Please sign in to comment.