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

Commit 06c31ff4 authored by Daniel Sandler's avatar Daniel Sandler Committed by Android Git Automerger
Browse files

am 60ac308e: Merge "Defend against a system server crash." into jb-mr2-dev

* commit '60ac308e':
  Defend against a system server crash.
parents 4d2ee536 60ac308e
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -727,7 +727,13 @@ public class NotificationManagerService extends INotificationManager.Stub
                        && info.userid == userid) {
                    mListeners.remove(i);
                    if (info.connection != null) {
                        try {
                            mContext.unbindService(info.connection);
                        } catch (IllegalArgumentException ex) {
                            // something happened to the service: we think we have a connection
                            // but it's bogus.
                            Slog.e(TAG, "Listener " + name + " could not be unbound: " + ex);
                        }
                    }
                }
            }