Cancel dial if hangup called before sdk.invite resolves

Fixkamo-internal
Shipped
April 29, 2026 at 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?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing