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

Commit d25c718a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Solve the infinite loop on clearExternalStorageDataSync" into nyc-dev

parents e8a442cc 99bf020f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -16338,8 +16338,9 @@ public class PackageManagerService extends IPackageManager.Stub {
                for (int curUser : users) {
                    long timeout = SystemClock.uptimeMillis() + 5000;
                    synchronized (conn) {
                        long now = SystemClock.uptimeMillis();
                        while (conn.mContainerService == null && now < timeout) {
                        long now;
                        while (conn.mContainerService == null &&
                                (now = SystemClock.uptimeMillis()) < timeout) {
                            try {
                                conn.wait(timeout - now);
                            } catch (InterruptedException e) {