diff options
Diffstat (limited to 'build/gobind')
-rw-r--r-- | build/gobind/monolith.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/gobind/monolith.go b/build/gobind/monolith.go index b73e47f8..d415143e 100644 --- a/build/gobind/monolith.go +++ b/build/gobind/monolith.go @@ -180,3 +180,10 @@ func (m *DendriteMonolith) Start(staticPeer string, enableMulticast bool) { logger.Fatal(httpServer.Serve(m.listener)) }() } + +func (m *DendriteMonolith) Stop() { + if err := m.listener.Close(); err != nil { + logrus.Warn("Error stopping listener:", err) + } + m.YggdrasilNode.Stop() +} |