Merge "Start the accept thread when the socket gets disconnected."

This commit is contained in:
Jaikumar Ganesh
2010-11-11 16:09:08 -08:00
committed by Android (Google) Code Review

View File

@@ -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;
} }
} }