KamoCRM

Cancel dial if hangup called before sdk.invite resolves

Fixkamo-internal
Shipped
29 ஏப்ரல், 2026 அன்று 3:48 AM UTC
Author
kamo
Commit
eaea0f8

Race condition: hangup() during connecting had no session to terminate yet (sdk.invite is awaited before wireSession), so the call connected anyway. Added cancelledDuringDialRef — set by hangup(), checked in dial() after the await to immediately kill the late-arriving session.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing