1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-08-13 16:53:49 -04:00

Check for denied access in itemdef/nodedef/media fetch loop

This commit is contained in:
Kahrl 2013-12-19 21:47:08 +01:00
parent e1f9ba435f
commit a50db0e824

View File

@ -1215,6 +1215,12 @@ void the_game(
break;
}
// Break conditions
if(client.accessDenied()){
error_message = L"Access denied. Reason: "
+client.accessDeniedReason();
errorstream<<wide_to_narrow(error_message)<<std::endl;
break;
}
if(!client.connectedAndInitialized()){
error_message = L"Client disconnected";
errorstream<<wide_to_narrow(error_message)<<std::endl;