mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Fix bug where a false EULA on delay start would cause the user to never be able to start the server.
This commit is contained in:
parent
c7d3b3aa1c
commit
bfe6cabd9e
@ -219,9 +219,14 @@ class Server:
|
||||
e_flag = False
|
||||
|
||||
if e_flag == False:
|
||||
websocket_helper.broadcast_user(user_id, 'send_eula_bootbox', {
|
||||
'id': self.server_id
|
||||
})
|
||||
if user_id:
|
||||
websocket_helper.broadcast_user(user_id, 'send_eula_bootbox', {
|
||||
'id': self.server_id
|
||||
})
|
||||
else:
|
||||
logger.error("Autostart failed due to EULA being false. Agree not sent due to auto start.")
|
||||
servers_helper.set_waiting_start(self.server_id, False)
|
||||
return False
|
||||
return False
|
||||
f.close()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user