Skip to content

Commit fa67cb0

Browse files
committed
Merge pull request nwjs#1748 from Ziugy/master
Fixing inaccurate warning logging when accessing properties on windows.
2 parents 33221ac + bc2db4f commit fa67cb0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/api/dispatcher_host.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,13 @@ void DispatcherHost::OnCallObjectMethodSync(
193193
<< " arguments:" << arguments;
194194

195195
Base* object = GetApiObject(object_id);
196-
LOG(WARNING) << "Unknown object: " << object_id
196+
if (object)
197+
object->CallSync(method, arguments, result);
198+
else
199+
DLOG(WARNING) << "Unknown object: " << object_id
197200
<< " type:" << type
198201
<< " method:" << method
199202
<< " arguments:" << arguments;
200-
if (object)
201-
object->CallSync(method, arguments, result);
202203
}
203204

204205
void DispatcherHost::OnCallStaticMethod(

0 commit comments

Comments
 (0)