Fix panic on shutdown
This commit is contained in:
parent
1fd59e6156
commit
93fafcb8e2
4
main.go
4
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
|
||||||
|
if wsserverForNodes != nil {
|
||||||
wsserverForNodes.Close()
|
wsserverForNodes.Close()
|
||||||
|
}
|
||||||
|
if respondDaemon != nil {
|
||||||
respondDaemon.Close()
|
respondDaemon.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue