diff --git a/pub_event[rungame,endgame](sync).ash b/pub_event[rungame,endgame](sync).ash index 3e657c8..fae5e19 100644 --- a/pub_event[rungame,endgame](sync).ash +++ b/pub_event[rungame,endgame](sync).ash @@ -19,10 +19,7 @@ log() { PAYLOAD=$(cat "$EVENT_FILE") # 4. Check Connection quickly (1 second max) -if ! nc -z -w 1 "$RCLONE_ENDPOINT" "$RCLONE_PORT"; then - log "ERROR" "Remote repo offline. Skipping sync to avoid hang." - exit 1 -fi +nc -z -w 1 "$RCLONE_ENDPOINT" "$RCLONE_PORT" || { log "ERROR" "Offline"; exit 1; } # 5. Publish Request if mosquitto_pub -h 127.0.0.1 -p 1883 -t "$TOPIC" -m "$PAYLOAD"; then