inspector: fix inspector::Agent::HasConnectedSessions

PR-URL: https://github.com/nodejs/node/pull/20614
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
helloshuangzi 2018-05-08 16:34:55 -07:00 committed by Anna Henningsen
parent 963cb3a49c
commit 34ca9f3b91
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -693,6 +693,8 @@ bool Agent::IsWaitingForConnect() {
}
bool Agent::HasConnectedSessions() {
if (client_ == nullptr)
return false;
return client_->hasConnectedSessions();
}