2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-12-24 23:02:18 +08:00

fix: call Stop on all other signals to correctly set the server state for the shutdown procedure to complete successfully (#982)

* fixes: #979
This commit is contained in:
Mohamed Sohail 2024-12-11 09:05:00 +03:00 committed by GitHub
parent 02907551b4
commit 043dcfbf56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,8 +24,10 @@ func (srv *Server) waitForSignals() {
if sig == unix.SIGTSTP {
srv.Stop()
continue
} else {
srv.Stop()
break
}
break
}
}