commit | c4ee500f1316e4f5222bca93f9bbac9ccad88803 | [log] [tgz] |
---|---|---|
author | Jaikumar Ganesh <jaikumar@google.com> | Thu Nov 11 15:51:19 2010 -0800 |
committer | Jaikumar Ganesh <jaikumar@google.com> | Thu Nov 11 16:01:50 2010 -0800 |
tree | 66b83eeff2635233af18ea7b87eb8722ab511589 | |
parent | 74025fa13938655a19ecc2469a284e620c04d18a [diff] |
Start the accept thread when the socket gets disconnected. Change-Id: I937c19c657a1077df8c2c19b5edc3fec218e11a4
diff --git a/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.java b/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.java index d0c1d43..20e9b9e 100644 --- a/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.java +++ b/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.java
@@ -402,6 +402,8 @@ } catch (IOException e) { Log.e(TAG, "disconnected", e); connectionLost(); + // Start the service over to restart listening mode + BluetoothChatService.this.start(); break; } }