Skip to content

Commit ccf69dd

Browse files
helloshuangziaddaleax
authored andcommitted
inspector: fix inspector::Agent::HasConnectedSessions
PR-URL: #20614 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent e0b438a commit ccf69dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/inspector_agent.cc

+2
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)