aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-03-28 10:55:53 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-03-28 10:55:53 +0100
commit34b9c8c67000bd27db73c987e629c9df0d2c0f28 (patch)
treec6fc04cd9d35f7c9db0d6a7fd3426091ce7bb816 /build
parentceb3874469eb60bc0ffe816acfddb2b368a48a4f (diff)
Ensure Dendrite has stopped in Pinecone demo `Stop()`
Diffstat (limited to 'build')
-rw-r--r--build/gobind-pinecone/monolith.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/gobind-pinecone/monolith.go b/build/gobind-pinecone/monolith.go
index 86545701..ea75d527 100644
--- a/build/gobind-pinecone/monolith.go
+++ b/build/gobind-pinecone/monolith.go
@@ -401,11 +401,12 @@ func (m *DendriteMonolith) Start() {
}
func (m *DendriteMonolith) Stop() {
+ m.processContext.ShutdownDendrite()
_ = m.listener.Close()
m.PineconeMulticast.Stop()
_ = m.PineconeQUIC.Close()
- m.processContext.ShutdownDendrite()
_ = m.PineconeRouter.Close()
+ m.processContext.WaitForComponentsToFinish()
}
const MaxFrameSize = types.MaxFrameSize