Skip to content

Commit 0d2df73

Browse files
orwell96est31
authored andcommittedMar 11, 2016
Fix ask_reconnect_on_crash option being ignored
Since commit 3b50b27 "Optional reconnect functionality" there is a config option named ask_reconnect_on_crash. It asks the client to reconnect to the server if the server crashed. It has been implemeted and works, but due to a function parameter not being passed it never showed effect. This patch adds the parameter and fixes the bug. Also fixes the `reconnect` option of minetest.request_shutdown being ignored.
1 parent 6f32507 commit 0d2df73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/server.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2568,7 +2568,7 @@ void Server::DenyAccessVerCompliant(u16 peer_id, u16 proto_ver, AccessDeniedCode
25682568
const std::string &str_reason, bool reconnect)
25692569
{
25702570
if (proto_ver >= 25) {
2571-
SendAccessDenied(peer_id, reason, str_reason);
2571+
SendAccessDenied(peer_id, reason, str_reason, reconnect);
25722572
} else {
25732573
std::wstring wreason = utf8_to_wide(
25742574
reason == SERVER_ACCESSDENIED_CUSTOM_STRING ? str_reason :

0 commit comments

Comments
 (0)
Please sign in to comment.