diff --git a/signals_unix.go b/signals_unix.go index 8bd2fc5..274675f 100644 --- a/signals_unix.go +++ b/signals_unix.go @@ -24,8 +24,10 @@ func (srv *Server) waitForSignals() { if sig == unix.SIGTSTP { srv.Stop() continue + } else { + srv.Stop() + break } - break } }