From 33834b1b2cf48526e1603365bb60feaf9dbe2cef Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 9 Oct 2024 21:23:12 +0300 Subject: [PATCH] hicli/send: ignore context cancellation inside goroutine --- hicli/send.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hicli/send.go b/hicli/send.go index 1c76a5a2..42b309a0 100644 --- a/hicli/send.go +++ b/hicli/send.go @@ -77,6 +77,7 @@ func (h *HiClient) Send(ctx context.Context, roomID id.RoomID, evtType event.Typ return nil, fmt.Errorf("failed to insert event into database: %w", err) } go func() { + ctx := context.WithoutCancel(ctx) var err error defer func() { h.EventHandler(&SendComplete{