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