We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53fadc5 + 56385cc commit 2218f6cCopy full SHA for 2218f6c
services/java/com/android/server/am/ActivityManagerService.java
@@ -8050,8 +8050,10 @@ public void run() {
8050
}
8051
};
8052
8053
- if (process == null || process.pid == MY_PID) {
8054
- worker.run(); // We may be about to die -- need to run this synchronously
+ if (process == null) {
+ // If process is null, we are being called from some internal code
8055
+ // and may be about to die -- run this synchronously.
8056
+ worker.run();
8057
} else {
8058
worker.start();
8059
0 commit comments