Skip to content

Commit

Permalink
[Server Management] Exiting the user to the Main Menu disconnect it f…
Browse files Browse the repository at this point in the history
…rom the server

Working on the issue #35
  • Loading branch information
SylvainMarty committed Jun 7, 2017
1 parent 0f283e8 commit 28cf0de
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ ServerSessionManager.OnGameStart = function()
if diff > session.closeSubscriptionAfter then
print("[DT-INFO] ServerSessionManager: Disconnecting client because the server is closed after "..session.closeSubscriptionAfter.." seconds.");
-- triggerEvent("OnConnectFailed", "You can't reconnect to the server until the game is restarted.")
-- FIXME: this method seem's to well disconnect the client but it cause the game crash too...
forceDisconnect();
getCore():exitToMenu()
return;
end
end
Expand Down

0 comments on commit 28cf0de

Please sign in to comment.