Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check for denied access in itemdef/nodedef/media fetch loop
  • Loading branch information
kahrl committed Dec 19, 2013
1 parent e1f9ba4 commit a50db0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/game.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a50db0e

Please sign in to comment.