Use background context when processing event with missing state

This commit is contained in:
Neil Alexander 2020-09-07 09:45:34 +01:00
parent b9caccbce8
commit 1cb4e8a3af
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -369,6 +369,7 @@ func (t *txnReq) processEvent(e gomatrixserverlib.Event, isInboundTxn bool) erro
} }
if !stateResp.PrevEventsExist { if !stateResp.PrevEventsExist {
t.context = context.Background()
return t.processEventWithMissingState(e, stateResp.RoomVersion, isInboundTxn) return t.processEventWithMissingState(e, stateResp.RoomVersion, isInboundTxn)
} }