diff --git a/internal/app/cmd/cmd.go b/internal/app/cmd/cmd.go index 5ebaf09..ac41447 100644 --- a/internal/app/cmd/cmd.go +++ b/internal/app/cmd/cmd.go @@ -152,7 +152,7 @@ func runWatcher(cfg killgrave.Config, currentSrv *server.Server) (*watcher.Watch if err := currentSrv.Shutdown(); err != nil { log.Fatal(err) } - runServer(cfg) + *currentSrv = runServer(cfg) }) return w, nil }