commit | acbd2cce99bca77a7b59bd49ec5567dfc979908c | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Tue Feb 25 09:43:18 2025 -0800 |
committer | Patrick Rohr <prohr@google.com> | Tue Feb 25 09:43:18 2025 -0800 |
tree | 3f09b7f6e5a82ee4e4199c0a92f49a7a1859387f | |
parent | 0508c94e14f9826d2506f18196ba7a8d5fdcb989 [diff] |
Stop forwarding when BluetoothSocket read returns -1 When BluetoothSocket.InputStream#read() returns -1, the Bluetooth stack closes the socket. Instead of dropping these packets, throw an exception to tear down the link. Test: TH Change-Id: I7b78d01bc62383d9f93fa70cc4237e3604c98913