fix: actually clear pending requests in devtoolsagenthost (#27379)
This commit is contained in:
parent
c8696d2c3d
commit
949cfea1e9
1 changed files with 1 additions and 0 deletions
|
@ -185,6 +185,7 @@ v8::Local<v8::Promise> Debugger::SendCommand(gin::Arguments* args) {
|
||||||
void Debugger::ClearPendingRequests() {
|
void Debugger::ClearPendingRequests() {
|
||||||
for (auto& it : pending_requests_)
|
for (auto& it : pending_requests_)
|
||||||
it.second.RejectWithErrorMessage("target closed while handling command");
|
it.second.RejectWithErrorMessage("target closed while handling command");
|
||||||
|
pending_requests_.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue