mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Make Connection::Send cancel silently if peer doesn't exist.
This commit is contained in:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user