Skip to content

Commit

Permalink
Fix #1733: An unhandled exception occurred: GetPeer: Peer not found (…
Browse files Browse the repository at this point in the history
…possible timeout)
  • Loading branch information
Zeno- authored and kwolekr committed Oct 28, 2014
1 parent 9bb6648 commit 6396712
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/connection.cpp
Expand Up @@ -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");
Expand Down

0 comments on commit 6396712

Please sign in to comment.