mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 14:21:55 -06:00
Fix panics on closed channel sends
This commit is contained in:
parent
9755494a98
commit
85ede6d64b
|
@ -119,7 +119,11 @@ func (r *Inputer) InputRoomEvents(
|
|||
} else {
|
||||
hooks.Run(hooks.KindNewEventPersisted, inputRoomEvent.Event)
|
||||
}
|
||||
responses <- err
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
default:
|
||||
responses <- err
|
||||
}
|
||||
})
|
||||
}
|
||||
for i := 0; i < len(request.InputRoomEvents); i++ {
|
||||
|
|
Loading…
Reference in a new issue