From ccaeb6539d2f7e9ac756a7f2017c9f9e8813e265 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Wed, 26 Feb 2014 11:08:41 +0100 Subject: Fix crash when interrupting QBluetoothSocket's input stream thread The previous QThread did not always properly resume when InputStream.read() was interrupted by BluetoothSocket.close(). This patch converts the QThread to a Java thread which works as the Android API docs suggested. Task-number: QTBUG-37061 Change-Id: Id6ac9b57a28f3b532cbe49ff1dfdc9d1e6432aaa Reviewed-by: Nedim Hadzic Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/bluetooth/qbluetoothsocket_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bluetooth/qbluetoothsocket_p.h') diff --git a/src/bluetooth/qbluetoothsocket_p.h b/src/bluetooth/qbluetoothsocket_p.h index 2e1bb66f..2fabeba1 100644 --- a/src/bluetooth/qbluetoothsocket_p.h +++ b/src/bluetooth/qbluetoothsocket_p.h @@ -170,7 +170,7 @@ public: InputStreamThread *inputThread; private Q_SLOTS: - void inputThreadError(); + void inputThreadError(int errorCode); #endif -- cgit v1.2.3