diff --git a/android/src/main/scala/com/nutomic/ensichat/bluetooth/BluetoothTransferThread.scala b/android/src/main/scala/com/nutomic/ensichat/bluetooth/BluetoothTransferThread.scala index 0ef5268..240a2fd 100644 --- a/android/src/main/scala/com/nutomic/ensichat/bluetooth/BluetoothTransferThread.scala +++ b/android/src/main/scala/com/nutomic/ensichat/bluetooth/BluetoothTransferThread.scala @@ -65,9 +65,6 @@ class BluetoothTransferThread(context: Context, device: Device, socket: Bluetoot while (socket.isConnected) { try { - // Block until data arrives. - inStream.read(Array[Byte](), 0, 0) - val msg = Message.read(inStream) Log.v(Tag, "Received " + msg) diff --git a/core/src/main/scala/com/nutomic/ensichat/core/internet/InternetConnectionThread.scala b/core/src/main/scala/com/nutomic/ensichat/core/internet/InternetConnectionThread.scala index d420ee7..74f8729 100644 --- a/core/src/main/scala/com/nutomic/ensichat/core/internet/InternetConnectionThread.scala +++ b/core/src/main/scala/com/nutomic/ensichat/core/internet/InternetConnectionThread.scala @@ -50,9 +50,6 @@ class InternetConnectionThread(socket: Socket, crypto: Crypto, onDisconnected: ( try { socket.setKeepAlive(true) while (socket.isConnected) { - // Block until data arrives. - inStream.read(Array[Byte](), 0, 0) - val msg = Message.read(inStream) Log.v(Tag, "Received " + msg)