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

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot]
2021-01-21 12:51:03 -08:00
committed by GitHub
parent fd269ec973
commit 340b4a2c1e

View File

@@ -184,6 +184,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