Skip to content

Commit

Permalink
wip fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
adonesky1 committed Oct 21, 2024
1 parent 70bd65f commit 27fd6fe
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export class QueuedRequestController extends BaseController<
this.#requestQueue
.filter(({ origin }) => origin === flushOrigin)
.forEach(({ processRequest }) => {
this.#processingRequestCount -= 1;
processRequest(
new Error(
'The request has been rejected due to a change in selected network. Please verify the selected network and retry the request.',
Expand All @@ -249,6 +250,8 @@ export class QueuedRequestController extends BaseController<
this.#requestQueue = this.#requestQueue.filter(
({ origin }) => origin !== flushOrigin,
);
this.#originOfCurrentBatch = undefined;
this.#networkClientIdOfCurrentBatch = undefined;
}

/**
Expand Down

0 comments on commit 27fd6fe

Please sign in to comment.