aboutsummaryrefslogtreecommitdiff
path: root/build/gobind/monolith.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/gobind/monolith.go')
-rw-r--r--build/gobind/monolith.go7
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()
+}