Skip to content
Permalink
Browse files

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

  • Loading branch information
kahrl committed Dec 19, 2013
1 parent e1f9ba4 commit a50db0e824eba8e0e265099df256cafc333113d7
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/game.cpp
@@ -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;

0 comments on commit a50db0e

Please sign in to comment.
You can’t perform that action at this time.