Skip to content

Commit e4c1801

Browse files
fix: added missing decrement for the "ready" WaitGroup counter (#1890)
Co-authored-by: Artur Melanchyk <[email protected]>
1 parent 52df300 commit e4c1801

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

worker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ func drainWorkerThreads() []*phpThread {
149149
ready.Add(len(worker.threads))
150150
for _, thread := range worker.threads {
151151
if !thread.state.requestSafeStateChange(stateRestarting) {
152+
ready.Done()
152153
// no state change allowed == thread is shutting down
153154
// we'll proceed to restart all other threads anyways
154155
continue

0 commit comments

Comments
 (0)