Fix panic on shutdown
This commit is contained in:
parent
1fd59e6156
commit
93fafcb8e2
8
main.go
8
main.go
|
@ -90,6 +90,10 @@ func main() {
|
||||||
log.Println("received", sig)
|
log.Println("received", sig)
|
||||||
|
|
||||||
// Close everything at the end
|
// Close everything at the end
|
||||||
wsserverForNodes.Close()
|
if wsserverForNodes != nil {
|
||||||
respondDaemon.Close()
|
wsserverForNodes.Close()
|
||||||
|
}
|
||||||
|
if respondDaemon != nil {
|
||||||
|
respondDaemon.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue