hicli/send: ignore context cancellation inside goroutine
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run

This commit is contained in:
Tulir Asokan 2024-10-09 21:23:12 +03:00
commit 33834b1b2c

View file

@ -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{