Don't need to block explicitly on transfers.
This commit is contained in:
parent
ba3ce67a06
commit
021e22e50b
2 changed files with 0 additions and 6 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Reference in a new issue