Merge "Start the accept thread when the socket gets disconnected."
This commit is contained in:
committed by
Android (Google) Code Review
commit
e79b943821
@@ -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