From b70a056dc513d04ae4c755c320961253f251a576 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Fri, 14 May 2021 13:07:56 +0200 Subject: [PATCH] Avoid offline components to be marked as failed --- pandora_server/bin/pandora_server | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_server/bin/pandora_server b/pandora_server/bin/pandora_server index fa3d1bbfcf..d1e79abbe2 100755 --- a/pandora_server/bin/pandora_server +++ b/pandora_server/bin/pandora_server @@ -802,7 +802,8 @@ sub main() { db_do ($DBH, "UPDATE tserver SET status = -1 - WHERE UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(keepalive) > 2*server_keepalive" + WHERE UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(keepalive) > 2*server_keepalive + AND status != 0" ); # Set the master server