aboutsummaryrefslogtreecommitdiff
path: root/setup/base
diff options
context:
space:
mode:
Diffstat (limited to 'setup/base')
-rw-r--r--setup/base/base.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup/base/base.go b/setup/base/base.go
index 51c43198..03ea2ad7 100644
--- a/setup/base/base.go
+++ b/setup/base/base.go
@@ -472,7 +472,7 @@ func (b *BaseDendrite) SetupAndServeHTTP(
b.WaitForShutdown()
ctx, cancel := context.WithCancel(context.Background())
- cancel()
+ defer cancel()
_ = internalServ.Shutdown(ctx)
_ = externalServ.Shutdown(ctx)