Fixed
This commit is contained in:
parent
a20b263b9e
commit
3b13a9f51d
@ -231,7 +231,9 @@ func (worker *Worker) Stop() {
|
|||||||
// Wait for completeness serving
|
// Wait for completeness serving
|
||||||
func (worker *Worker) WaitRunning() {
|
func (worker *Worker) WaitRunning() {
|
||||||
// Wait for all the running activities has stopped
|
// Wait for all the running activities has stopped
|
||||||
worker.active.Wait()
|
if worker.stopped {
|
||||||
|
worker.active.Wait()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close connection and exit main loop
|
// Close connection and exit main loop
|
||||||
|
Loading…
Reference in New Issue
Block a user