tanelih / phonegap-bluetooth-plugin

Bluetooth plugin for PhoneGap version 2.6.0+
MIT License
57 stars 50 forks source link

Not using BluetoothSocket#isConnected() #23

Closed kozak closed 10 years ago

kozak commented 10 years ago

Instead of depending on the implementation of isConnected() method, we assume the connection is ok, when the socket is not null. Writing or reading from a closed/not connected socket will trigger an error like normal. This is done because isConnected() always returns false on some devices.