fix(core): correctly cancel on timeout

im dumb lol
This commit is contained in:
alina 🌸 2024-05-30 00:21:44 +03:00
parent c0ae65b60f
commit d828d497db
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -1453,7 +1453,7 @@ export class SessionConnection extends PersistentConnection {
} }
if (timeout) { if (timeout) {
pending.timeout = setTimeout(this._cancelRpc, timeout, pending, true) pending.timeout = setTimeout(() => this._cancelRpc(pending, true), timeout)
} }
if (abortSignal) { if (abortSignal) {