Fix panics on closed channel sends
This commit is contained in:
parent
9755494a98
commit
85ede6d64b
|
@ -119,7 +119,11 @@ func (r *Inputer) InputRoomEvents(
|
||||||
} else {
|
} else {
|
||||||
hooks.Run(hooks.KindNewEventPersisted, inputRoomEvent.Event)
|
hooks.Run(hooks.KindNewEventPersisted, inputRoomEvent.Event)
|
||||||
}
|
}
|
||||||
responses <- err
|
select {
|
||||||
|
case <-ctx.Done():
|
||||||
|
default:
|
||||||
|
responses <- err
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
for i := 0; i < len(request.InputRoomEvents); i++ {
|
for i := 0; i < len(request.InputRoomEvents); i++ {
|
||||||
|
|
Loading…
Reference in a new issue