Skip to content
Snippets Groups Projects
Commit faf3d790 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Make Connection::Send cancel silently if peer doesn't exist.

parent 63f1ded1
No related branches found
No related tags found
No related merge requests found
......@@ -1121,7 +1121,9 @@ void Connection::Send(u16 peer_id, u8 channelnum,
{
assert(channelnum < CHANNEL_COUNT);
Peer *peer = GetPeer(peer_id);
Peer *peer = GetPeerNoEx(peer_id);
if(peer == NULL)
return;
Channel *channel = &(peer->channels[channelnum]);
u32 chunksize_max = m_max_packet_size - BASE_HEADER_SIZE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment