mirror of
https://github.com/LSPosed/LSPosed.git
synced 2026-10-28 11:26:39 +08:00
Skip new launch when the previous one is still pending (#2347)
Fixes #2346 Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
@@ -262,6 +262,11 @@ public class LSPManagerService extends ILSPManagerService.Stub {
|
||||
// there's one running parasitic manager
|
||||
// or it's run by ourself after killing, resume it
|
||||
return true;
|
||||
} else if (pendingManager) {
|
||||
// Check the flag in case new launch comes before finishing
|
||||
// the previous one to avoid racing.
|
||||
Log.d(TAG, "manager is still on its way when new launch comes, skipping");
|
||||
return false;
|
||||
} else {
|
||||
// new parasitic manager launch, set the flag and kill
|
||||
// old processes
|
||||
|
||||
Reference in New Issue
Block a user