aboutsummaryrefslogtreecommitdiff
path: root/roomserver
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-02-02 17:46:37 +0000
committerNeil Alexander <neilalexander@users.noreply.github.com>2022-02-02 17:46:37 +0000
commit4d9f5b2e5787d23e1dbcebfda1c6d99d3498ec7e (patch)
tree5bf4c1071a4716b8a6b87393640f06a2bd333028 /roomserver
parent2a5c38fee23439103e2260d184f74bf41f729e09 (diff)
Fix panic from closing the input channel before the workers complete (it'll get GC'd either way)
Diffstat (limited to 'roomserver')
-rw-r--r--roomserver/internal/input/input.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/roomserver/internal/input/input.go b/roomserver/internal/input/input.go
index a38d56d7..7834e2ed 100644
--- a/roomserver/internal/input/input.go
+++ b/roomserver/internal/input/input.go
@@ -161,7 +161,6 @@ func (r *Inputer) InputRoomEvents(
}
} else {
responses := make(chan error, len(request.InputRoomEvents))
- defer close(responses)
for _, e := range request.InputRoomEvents {
inputRoomEvent := e
roomID := inputRoomEvent.Event.RoomID()