mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Gracefully handle PacketErrors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user