From 46afcbb3a60503ddc7066cec99cd48f517701ff4 Mon Sep 17 00:00:00 2001 From: wytch Date: Fri, 27 Feb 2026 20:54:51 -0600 Subject: [PATCH] More optimizations --- pub_event[rungame,endgame](sync).ash | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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