Merge "Catch IllegalArgumentException when disconnect" into oc-mr1-dev
am: 1d66ccde36
Change-Id: I2db7c5b73f6b4af128dda75150f7bd2ebeeb653c
This commit is contained in:
@@ -256,7 +256,13 @@ public final class MediaBrowser {
|
|||||||
*/
|
*/
|
||||||
private void forceCloseConnection() {
|
private void forceCloseConnection() {
|
||||||
if (mServiceConnection != null) {
|
if (mServiceConnection != null) {
|
||||||
mContext.unbindService(mServiceConnection);
|
try {
|
||||||
|
mContext.unbindService(mServiceConnection);
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
|
if (DBG) {
|
||||||
|
Log.d(TAG, "unbindService failed", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
mState = CONNECT_STATE_DISCONNECTED;
|
mState = CONNECT_STATE_DISCONNECTED;
|
||||||
mServiceConnection = null;
|
mServiceConnection = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user