Skip to content

Commit 3cc8669

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fetch.js

+1-1
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)