Merge "Catch double unbind of dead service"
am: 03cdc95f1c
Change-Id: I9ff4cb306e807d769a1dd5acca06a2703b666040
This commit is contained in:
@@ -844,7 +844,11 @@ abstract public class ManagedServices {
|
|||||||
Slog.v(TAG, " disconnecting old " + getCaption() + ": " + info.service);
|
Slog.v(TAG, " disconnecting old " + getCaption() + ": " + info.service);
|
||||||
removeServiceLocked(i);
|
removeServiceLocked(i);
|
||||||
if (info.connection != null) {
|
if (info.connection != null) {
|
||||||
mContext.unbindService(info.connection);
|
try {
|
||||||
|
mContext.unbindService(info.connection);
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
|
Slog.e(TAG, "failed to unbind " + name, e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user