Skip to content

Commit

Permalink
fix: actually clear pending requests in DevToolsAgentHost (#27439)
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Jan 21, 2021
1 parent 3bda527 commit 207dbb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shell/browser/api/electron_api_debugger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ v8::Local<v8::Promise> Debugger::SendCommand(gin::Arguments* args) {
void Debugger::ClearPendingRequests() {
for (auto& it : pending_requests_)
it.second.RejectWithErrorMessage("target closed while handling command");
pending_requests_.clear();
}

// static
Expand Down

0 comments on commit 207dbb8

Please sign in to comment.