chinnytp / android-bluetooth

Automatically exported from code.google.com/p/android-bluetooth
1 stars 0 forks source link

InputStream.read() blocks even after closing BluetoothSocket #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect to a device
  bluetoothSocket = remoteBluetoothDevice.openSocket(i);
  inputStream = bluetoothSocket.getInputStream();
  outputStream = bluetoothSocket.getOutputStream();
2. Read/Write - using inputStream.read();
3. Close all
  inputStream.close();
  outputStream.close();
  bluetoothSocket.close();

What is the expected output? What do you see instead?

InputStream.read() still blocks - nothing is returned nor exception 
thrown. It should return -1 or throw an IOException.

What version of the product are you using? On what operating system?
Win Vista/Eclipse/G1 - same effect on different firmwares

Please provide any additional information below.

Original issue reported on code.google.com by smartmad...@gmail.com on 31 Aug 2009 at 11:34

GoogleCodeExporter commented 9 years ago

Original comment by gerda...@gmail.com on 7 Sep 2009 at 12:30

GoogleCodeExporter commented 9 years ago
Fixed on 0.2

Original comment by gerda...@gmail.com on 7 Sep 2009 at 3:52

GoogleCodeExporter commented 9 years ago

Original comment by gerda...@gmail.com on 18 Oct 2009 at 7:05