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

* possibly fixes: #979
  • Loading branch information
kamikazechaser committed Dec 9, 2024
1 parent 0290755 commit 71c746d
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 71c746d

Please sign in to comment.