mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +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)
|
||||
}
|
||||
responses <- err
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
default:
|
||||
responses <- err
|
||||
}
|
||||
})
|
||||
}
|
||||
for i := 0; i < len(request.InputRoomEvents); i++ {
|
||||
|
|
Loading…
Reference in a new issue