Skip to content

Commit 3cc8669

Browse files
committed
fix: do not abort native request if none was made yet
1 parent 348bc1c commit 3cc8669

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Fetch {
9999
}
100100

101101
__abort() {
102-
Networking.abortRequest(this._requestId);
102+
this._requestId && Networking.abortRequest(this._requestId);
103103
this._streamController?.error(new AbortError());
104104
this._deferredPromise.reject(new AbortError());
105105
this.__clearNetworkSubscriptions();

0 commit comments

Comments
 (0)