fix link to javascript in socket connected callback
authorCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Fri, 29 Aug 2014 15:53:35 +0000 (17:53 +0200)
committerCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Fri, 29 Aug 2014 16:04:30 +0000 (18:04 +0200)
bluetooth/bluetooth_instance_capi.cc

index e45babd..0265e0d 100644 (file)
@@ -390,6 +390,8 @@ void BluetoothInstance::OnSocketConnected(int result,
   if (result) {
     LOG_ERR("onSocketConnected() is failed");
     o["error"] = picojson::value(static_cast<double>(1));
+  } else {
+    o["error"] = picojson::value(static_cast<double>(0));
   }
 
   if (connection_state == BT_SOCKET_CONNECTED &&