فهرست منبع

unreal2 servers now wait 60 seconds

instead of 30 seconds because map changes can take this long
Daniel Gibbs 11 سال پیش
والد
کامیت
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