File diff r23496:661d21df67d7 → r23497:a0ab44ebd2fa
src/network/network_server.cpp
Show inline comments
 
@@ -160,13 +160,13 @@ struct PacketWriter : SaveFilter {
 
		}
 
		*p = this->current;
 

	
 
		this->current = NULL;
 
	}
 

	
 
	/* virtual */ void Write(byte *buf, size_t size)
 
	void Write(byte *buf, size_t size) override
 
	{
 
		/* We want to abort the saving when the socket is closed. */
 
		if (this->cs == NULL) SlError(STR_NETWORK_ERROR_LOSTCONNECTION);
 

	
 
		if (this->current == NULL) this->current = new Packet(PACKET_SERVER_MAP_DATA);
 

	
 
@@ -187,13 +187,13 @@ struct PacketWriter : SaveFilter {
 

	
 
		if (this->mutex != NULL) this->mutex->EndCritical();
 

	
 
		this->total_size += size;
 
	}
 

	
 
	/* virtual */ void Finish()
 
	void Finish() override
 
	{
 
		/* We want to abort the saving when the socket is closed. */
 
		if (this->cs == NULL) SlError(STR_NETWORK_ERROR_LOSTCONNECTION);
 

	
 
		if (this->mutex != NULL) this->mutex->BeginCritical();