Skip to content

Commit 043dcfb

Browse files
fix: call Stop on all other signals to correctly set the server state for the shutdown procedure to complete successfully (#982)
* fixes: #979
1 parent 0290755 commit 043dcfb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

signals_unix.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ func (srv *Server) waitForSignals() {
2424
if sig == unix.SIGTSTP {
2525
srv.Stop()
2626
continue
27+
} else {
28+
srv.Stop()
29+
break
2730
}
28-
break
2931
}
3032
}
3133

0 commit comments

Comments
 (0)