Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0d33bc3 authored by Tobias Lindskog's avatar Tobias Lindskog Committed by android-build-merger
Browse files

Merge "Catch double unbind of dead service"

am: 03cdc95f

Change-Id: I9ff4cb306e807d769a1dd5acca06a2703b666040
parents b0e8ab67 03cdc95f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -844,7 +844,11 @@ abstract public class ManagedServices {
                Slog.v(TAG, "    disconnecting old " + getCaption() + ": " + info.service);
                removeServiceLocked(i);
                if (info.connection != null) {
                    try {
                        mContext.unbindService(info.connection);
                    } catch (IllegalArgumentException e) {
                        Slog.e(TAG, "failed to unbind " + name, e);
                    }
                }
            }
        }