From 1cb4e8a3af970732be4cf57153c4e4482998dbf9 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 7 Sep 2020 09:45:34 +0100 Subject: [PATCH] Use background context when processing event with missing state --- federationapi/routing/send.go | 1 + 1 file changed, 1 insertion(+) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index beb7d4614..e20b44405 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -369,6 +369,7 @@ func (t *txnReq) processEvent(e gomatrixserverlib.Event, isInboundTxn bool) erro } if !stateResp.PrevEventsExist { + t.context = context.Background() return t.processEventWithMissingState(e, stateResp.RoomVersion, isInboundTxn) }