mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
hicli/send: ignore context cancellation inside goroutine
This commit is contained in:
parent
29b0d9b95c
commit
33834b1b2c
1 changed files with 1 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue