Просмотр исходного кода

unreal2 servers now wait 60 seconds

instead of 30 seconds because map changes can take this long
Daniel Gibbs 11 лет назад
Родитель
Сommit
a816fc93ef
1 измененных файлов с 12 добавлено и 5 удалено
  1. 12 5
      functions/fn_monitor_query

+ 12 - 5
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