mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Fixed a few minor errors in the server_controller script
This commit is contained in:
@@ -12,6 +12,8 @@ sock.bind( (UDP_IP,UDP_PORT) )
|
|||||||
last_ticker_state = None
|
last_ticker_state = None
|
||||||
|
|
||||||
def handle_message(data, addr):
|
def handle_message(data, addr):
|
||||||
|
global last_ticker_state
|
||||||
|
|
||||||
params = urlparse.parse_qs(data)
|
params = urlparse.parse_qs(data)
|
||||||
print(data)
|
print(data)
|
||||||
|
|
||||||
@@ -30,9 +32,8 @@ def handle_message(data, addr):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
global last_ticker_state
|
|
||||||
if params["type"][0] == "startup" and last_ticker_state:
|
if params["type"][0] == "startup" and last_ticker_state:
|
||||||
open("crashlog.txt","a+").write("Server exited, last ticker state was: "+last_ticker_state)
|
open("crashlog.txt","a+").write("Server exited, last ticker state was: "+last_ticker_state+"\n")
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user