Gracefully handle PacketErrors

master
est31 2015-05-08 06:51:03 +02:00
parent 72b9d3aed4
commit c4763b2d29
1 changed files with 5 additions and 2 deletions

View File

@ -1227,11 +1227,14 @@ void Server::ProcessData(NetworkPacket *pkt)
}
handleCommand(pkt);
}
catch(SendFailedException &e) {
} catch (SendFailedException &e) {
errorstream << "Server::ProcessData(): SendFailedException: "
<< "what=" << e.what()
<< std::endl;
} catch (PacketError &e) {
actionstream << "Server::ProcessData(): PacketError: "
<< "what=" << e.what()
<< std::endl;
}
}