Merge "Handle Context#unbindService exception" into rvc-dev am: 06e29c96fc am: f6a9b17276
Change-Id: Idfc8a705b13dce4a5faba2c7a7d8c673aed03dad
This commit is contained in:
@@ -242,7 +242,13 @@ public final class StorageUserConnection {
|
||||
}
|
||||
|
||||
if (oldConnection != null) {
|
||||
mContext.unbindService(oldConnection);
|
||||
try {
|
||||
mContext.unbindService(oldConnection);
|
||||
} catch (Exception e) {
|
||||
// Handle IllegalArgumentException that may be thrown if the user is already
|
||||
// stopped when we try to unbind
|
||||
Slog.w(TAG, "Failed to unbind service", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user