diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index 446be8c9c..7c4d0b5a7 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -177,6 +177,7 @@ func Send( ch := make(chan util.JSONResponse, 1) txnIDs.Store(index, ch) defer close(ch) + defer txnIDs.Delete(index) t := txnReq{ rsAPI: rsAPI,