Skip to content

Commit

Permalink
inspector: fix inspector::Agent::HasConnectedSessions
Browse files Browse the repository at this point in the history
PR-URL: nodejs#20614
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
helloshuangzi committed May 14, 2018
1 parent 5d8e8c2 commit 09dd192
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,8 @@ bool Agent::IsWaitingForConnect() {
}

bool Agent::HasConnectedSessions() {
if (client_ == nullptr)
return false;
return client_->hasConnectedSessions();
}

Expand Down

0 comments on commit 09dd192

Please sign in to comment.