fix(macOS): add sleep before launchctl bootstrap to prevent race condition

This commit is contained in:
Haitao Pan 2026-06-17 09:20:09 +08:00
parent 354f868089
commit 6922e18115

View File

@ -1822,6 +1822,7 @@ deploy_launch_agent() {
EOF
launchctl bootout "$domain" "$plist" >/dev/null 2>&1 || true
sleep 0.2
launchctl bootstrap "$domain" "$plist" >/dev/null
launchctl kickstart -k "$domain/$label" >/dev/null
}