Skip to content

Commit

Permalink
fix: call Stop on all other signals to correctly set the server state…
Browse files Browse the repository at this point in the history
… for the shutdown procedure to complete successfully (hibiken#982)

* fixes: hibiken#979
  • Loading branch information
kamikazechaser authored and divyam234 committed Dec 18, 2024
1 parent 3b39166 commit 799386c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion signals_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ func (srv *Server) waitForSignals() {
if sig == unix.SIGTSTP {
srv.Stop()
continue
} else {
srv.Stop()
break
}
break
}
}

Expand Down

0 comments on commit 799386c

Please sign in to comment.