0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 06:53:44 +01:00

Ensure Dendrite has stopped in Pinecone demo Stop()

This commit is contained in:
Neil Alexander 2022-03-28 10:55:53 +01:00
parent ceb3874469
commit 34b9c8c670
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -401,11 +401,12 @@ func (m *DendriteMonolith) Start() {
} }
func (m *DendriteMonolith) Stop() { func (m *DendriteMonolith) Stop() {
m.processContext.ShutdownDendrite()
_ = m.listener.Close() _ = m.listener.Close()
m.PineconeMulticast.Stop() m.PineconeMulticast.Stop()
_ = m.PineconeQUIC.Close() _ = m.PineconeQUIC.Close()
m.processContext.ShutdownDendrite()
_ = m.PineconeRouter.Close() _ = m.PineconeRouter.Close()
m.processContext.WaitForComponentsToFinish()
} }
const MaxFrameSize = types.MaxFrameSize const MaxFrameSize = types.MaxFrameSize