Gracefully handle PacketErrors
This commit is contained in:
parent
ef755ff2c4
commit
8e1865b3bb
@ -1231,11 +1231,14 @@ void Server::ProcessData(NetworkPacket *pkt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleCommand(pkt);
|
handleCommand(pkt);
|
||||||
}
|
} catch (SendFailedException &e) {
|
||||||
catch(SendFailedException &e) {
|
|
||||||
errorstream << "Server::ProcessData(): SendFailedException: "
|
errorstream << "Server::ProcessData(): SendFailedException: "
|
||||||
<< "what=" << e.what()
|
<< "what=" << e.what()
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
} catch (PacketError &e) {
|
||||||
|
actionstream << "Server::ProcessData(): PacketError: "
|
||||||
|
<< "what=" << e.what()
|
||||||
|
<< std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user