Skip to content

Commit 7d71935

Browse files
committed
[fix]: call runtime.Gosched() to allow waitgroup.Wait to run when on hammerTime
1 parent 46965b7 commit 7d71935

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

endless.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"os"
1111
"os/exec"
1212
"os/signal"
13+
"runtime"
1314
"strings"
1415
"sync"
1516
"syscall"
@@ -403,6 +404,7 @@ func (srv *endlessServer) hammerTime(d time.Duration) {
403404
break
404405
}
405406
srv.wg.Done()
407+
runtime.Gosched()
406408
}
407409
}
408410

0 commit comments

Comments
 (0)