mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix #1733: An unhandled exception occurred: GetPeer: Peer not found (possible timeout)
This commit is contained in:
parent
9bb6648f26
commit
6396712ec4
1 changed files with 6 additions and 1 deletions
|
@ -2322,7 +2322,12 @@ bool ConnectionReceiveThread::checkIncomingBuffers(Channel *channel,
|
|||
SharedBuffer<u8> ConnectionReceiveThread::processPacket(Channel *channel,
|
||||
SharedBuffer<u8> packetdata, u16 peer_id, u8 channelnum, bool reliable)
|
||||
{
|
||||
PeerHelper peer = m_connection->getPeer(peer_id);
|
||||
PeerHelper peer = m_connection->getPeerNoEx(peer_id);
|
||||
|
||||
if (!peer) {
|
||||
errorstream << "Peer not found (possible timeout)" << std::endl;
|
||||
throw ProcessedSilentlyException("Peer not found (possible timeout)");
|
||||
}
|
||||
|
||||
if(packetdata.getSize() < 1)
|
||||
throw InvalidIncomingDataException("packetdata.getSize() < 1");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue