fix(macOS): add sleep before launchctl bootstrap to prevent race condition
This commit is contained in:
parent
354f868089
commit
6922e18115
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user