Skip to content

Commit 3fe252d

Browse files
committed
no consoleMessage api if no connected client
1 parent 0111a3b commit 3fe252d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runtime/src/main/jni/JsV8InspectorClient.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ JsV8InspectorClient *JsV8InspectorClient::GetInstance()
222222

223223

224224
void JsV8InspectorClient::sendToFrontEndCallback(const v8::FunctionCallbackInfo<v8::Value>& args) {
225+
226+
if(instance->connection == nullptr) {
227+
return;
228+
}
229+
225230
try
226231
{
227232
if ((args.Length() > 0) && args[0]->IsString())

0 commit comments

Comments
 (0)