mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 13:19:53 +05:00
Make startEngine to wait until it fuly starts.
This commit is contained in:
committed by
Dan Christian Bogos
parent
ace31f8256
commit
6d200d8604
@@ -105,7 +105,7 @@ func StartEngine(cfgPath string, waitEngine int) (*exec.Cmd, error) {
|
||||
if !connected {
|
||||
return nil, fmt.Errorf("engine did not open port <%s>", cfg.ListenCfg().RPCJSONListen)
|
||||
}
|
||||
time.Sleep(100 * time.Millisecond) // wait for rater to register all subsistems
|
||||
time.Sleep(time.Duration(waitEngine) * time.Millisecond) // wait for rater to register all subsistems
|
||||
return engine, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user