Don't need to block explicitly on transfers.

This commit is contained in:
Felix Ableitner 2016-02-11 13:54:34 +01:00
parent ba3ce67a06
commit 021e22e50b
2 changed files with 0 additions and 6 deletions

View file

@ -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)

View file

@ -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)