diff --git a/cmd/run.go b/cmd/run.go index f50ea02..bc3256f 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -121,6 +121,10 @@ loop: switch sig { case nil: if reloading { + if listener == nil { + // Failed to listen. Exit. + break loop + } // Serve. reloading = false log.Warnln("[Reload] Serve")