mirror of
https://github.com/datarhei/core.git
synced 2025-10-01 22:32:28 +08:00
Decrease sleep time
This commit is contained in:
@@ -808,7 +808,7 @@ func (p *process) stop(wait bool, reason string) error {
|
|||||||
// If the process in starting state, wait until the process has been started
|
// If the process in starting state, wait until the process has been started
|
||||||
for {
|
for {
|
||||||
if p.getState() == stateStarting {
|
if p.getState() == stateStarting {
|
||||||
time.Sleep(500 * time.Millisecond)
|
time.Sleep(100 * time.Millisecond)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user