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

Commit c1b49bd2 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Defend against a system server crash.

Bug: 8575629
Change-Id: Iafc8ab2f7460c8eacc37fc077cf5a3df16cf2911
parent 4c95c537
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);
                        }
                    }
                }
            }