Avoid panicking unnecessarily when shutting down the gobind P2P demos (#2520)

This commit is contained in:
Neil Alexander 2022-06-07 10:46:21 +01:00
parent 0d7020fbaf
commit aafb7bf120
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 17 additions and 5 deletions

View file

@ -170,11 +170,11 @@ func (m *DendriteMonolith) Start() {
go func() {
m.logger.Info("Listening on ", ygg.DerivedServerName())
m.logger.Fatal(m.httpServer.Serve(ygg))
m.logger.Error(m.httpServer.Serve(ygg))
}()
go func() {
logrus.Info("Listening on ", m.listener.Addr())
logrus.Fatal(http.Serve(m.listener, httpRouter))
logrus.Error(http.Serve(m.listener, httpRouter))
}()
go func() {
logrus.Info("Sending wake-up message to known nodes")