Skip to content

Commit 34ca9f3

Browse files
helloshuangziaddaleax
authored andcommitted
inspector: fix inspector::Agent::HasConnectedSessions
PR-URL: #20614 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 963cb3a commit 34ca9f3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/inspector_agent.cc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,8 @@ bool Agent::IsWaitingForConnect() {
693693
}
694694

695695
bool Agent::HasConnectedSessions() {
696+
if (client_ == nullptr)
697+
return false;
696698
return client_->hasConnectedSessions();
697699
}
698700

0 commit comments

Comments
 (0)