Start the accept thread when the socket gets disconnected.

Change-Id: I937c19c657a1077df8c2c19b5edc3fec218e11a4
This commit is contained in:
Jaikumar Ganesh
2010-11-11 15:51:19 -08:00
parent 74025fa139
commit c4ee500f13

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