mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-27 08:00:38 +07:00
fix: should gracefully exit if failed to listen when reloading (#138)
This commit is contained in:
parent
d5172bde64
commit
f494373a30
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user