fix: actually clear pending requests in devtoolsagenthost (#27379)

This commit is contained in:
Shelley Vohr
2021-01-21 11:00:43 -08:00
committed by GitHub
parent c8696d2c3d
commit 949cfea1e9

View File

@@ -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