Start the accept thread when the socket gets disconnected.
Change-Id: I937c19c657a1077df8c2c19b5edc3fec218e11a4
This commit is contained in:
@@ -402,6 +402,8 @@ public class BluetoothChatService {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.e(TAG, "disconnected", e);
|
Log.e(TAG, "disconnected", e);
|
||||||
connectionLost();
|
connectionLost();
|
||||||
|
// Start the service over to restart listening mode
|
||||||
|
BluetoothChatService.this.start();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user