Added missing close() call in TransferThread.
This commit is contained in:
parent
0eab785e96
commit
5189a459ba
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ class TransferThread(device: Device, socket: BluetoothSocket, handler: Bluetooth
|
|||
} catch {
|
||||
case e @ (_: ReadMessageException | _: IOException) =>
|
||||
Log.w(Tag, "Failed to read incoming message", e)
|
||||
close()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue