From 3ef1ebec0944b730489848f2901b6bf309413e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20L=C3=B3pez=20de=20la=20Franca=20Beltran?= Date: Sat, 18 Nov 2023 21:02:04 +0100 Subject: [PATCH] Fix watcher mode --- internal/app/cmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }