mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Gracefully handle PacketErrors
This commit is contained in:
parent
0e64fc45b9
commit
33c11415bf
1 changed files with 5 additions and 2 deletions
|
@ -1227,11 +1227,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…
Add table
Add a link
Reference in a new issue