mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Revert "Network: fix a concurrency problem, by re-adding a copy in ConnectionCommand"
This reverts commit 5b04f5e7d2.
			
			
This commit is contained in:
		@@ -330,18 +330,6 @@ struct ConnectionCommand
 | 
			
		||||
	bool raw = false;
 | 
			
		||||
 | 
			
		||||
	ConnectionCommand() = default;
 | 
			
		||||
	ConnectionCommand &operator=(const ConnectionCommand &other)
 | 
			
		||||
	{
 | 
			
		||||
		type = other.type;
 | 
			
		||||
		address = other.address;
 | 
			
		||||
		peer_id = other.peer_id;
 | 
			
		||||
		channelnum = other.channelnum;
 | 
			
		||||
		// We must copy the buffer here to prevent race condition
 | 
			
		||||
		data = SharedBuffer<u8>(*other.data, other.data.getSize());
 | 
			
		||||
		reliable = other.reliable;
 | 
			
		||||
		raw = other.reliable;
 | 
			
		||||
		return *this;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	void serve(Address address_)
 | 
			
		||||
	{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user