From a816fc93ef8c47980313e023f77a616552f8429e Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 22 Mar 2015 23:41:27 +0000 Subject: [PATCH] unreal2 servers now wait 60 seconds instead of 30 seconds because map changes can take this long --- functions/fn_monitor_query | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/functions/fn_monitor_query b/functions/fn_monitor_query index 893e6b35c..f9a888bff 100644 --- a/functions/fn_monitor_query +++ b/functions/fn_monitor_query @@ -1,8 +1,8 @@ #!/bin/bash # LGSM fn_monitor_query function # Author: Daniel Gibbs -# Website: http://danielgibbs.co.uk -# Version: 210115 +# Website: http://gameservermanagers.com +# Version: 220315 # Description: uses gsquery.py to directly query the server. # Detects if the server has frozen. @@ -35,9 +35,16 @@ if [ -f gsquery.py ]; then sleep 1 echo -en "\n" if [[ -z "${secondquery}" ]]; then - fn_printinfo "Waiting 30 seconds to re-query" - fn_scriptlog "Waiting 30 seconds to re-query" - sleep 30 + if [ "${engine}" == "unreal2" ]; then + # unreal 2: Map change can take around 60 seconds + fn_printinfo "Waiting 60 seconds to re-query" + fn_scriptlog "Waiting 60 seconds to re-query" + sleep 60 + else + fn_printinfo "Waiting 30 seconds to re-query" + fn_scriptlog "Waiting 30 seconds to re-query" + sleep 30 + fi secondquery=1 fn_monitor_query fi