aboutsummaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
Diffstat (limited to 'setup')
-rw-r--r--setup/base/base.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/setup/base/base.go b/setup/base/base.go
index e67b034a..7091c6ba 100644
--- a/setup/base/base.go
+++ b/setup/base/base.go
@@ -469,14 +469,12 @@ func (b *BaseDendrite) SetupAndServeHTTP(
}
minwinsvc.SetOnExit(b.ProcessContext.ShutdownDendrite)
-
<-b.ProcessContext.WaitForShutdown()
+
logrus.Infof("Stopping HTTP listeners")
_ = internalServ.Shutdown(context.Background())
_ = externalServ.Shutdown(context.Background())
logrus.Infof("Stopped HTTP listeners")
-
- b.WaitForShutdown()
}
func (b *BaseDendrite) WaitForShutdown() {