Loading core/java/android/bluetooth/BluetoothSocket.java +8 −2 Original line number Diff line number Diff line Loading @@ -478,9 +478,15 @@ public final class BluetoothSocket implements Closeable { } /*package*/ int read(byte[] b, int offset, int length) throws IOException { int ret = -1; if (VDBG) Log.d(TAG, "read in: " + mSocketIS + " len: " + length); int ret = mSocketIS.read(b, offset, length); if(mSocketIS != null) { try { ret = mSocketIS.read(b, offset, length); } catch (IOException e) { Log.e(TAG, "IOException while reading the InputStream"); } } if(ret < 0) throw new IOException("bt socket closed, read return: " + ret); if (VDBG) Log.d(TAG, "read out: " + mSocketIS + " ret: " + ret); Loading Loading
core/java/android/bluetooth/BluetoothSocket.java +8 −2 Original line number Diff line number Diff line Loading @@ -478,9 +478,15 @@ public final class BluetoothSocket implements Closeable { } /*package*/ int read(byte[] b, int offset, int length) throws IOException { int ret = -1; if (VDBG) Log.d(TAG, "read in: " + mSocketIS + " len: " + length); int ret = mSocketIS.read(b, offset, length); if(mSocketIS != null) { try { ret = mSocketIS.read(b, offset, length); } catch (IOException e) { Log.e(TAG, "IOException while reading the InputStream"); } } if(ret < 0) throw new IOException("bt socket closed, read return: " + ret); if (VDBG) Log.d(TAG, "read out: " + mSocketIS + " ret: " + ret); Loading