From 4d9f5b2e5787d23e1dbcebfda1c6d99d3498ec7e Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 2 Feb 2022 17:46:37 +0000 Subject: [PATCH] Fix panic from closing the input channel before the workers complete (it'll get GC'd either way) --- roomserver/internal/input/input.go | 1 - 1 file changed, 1 deletion(-) diff --git a/roomserver/internal/input/input.go b/roomserver/internal/input/input.go index a38d56d7e..7834e2edc 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()