File diff r25244:61183b73d88e → r25245:5872175e0e0c
src/network/core/tcp_listen.h
Show inline comments
 
@@ -63,7 +63,7 @@ public:
 

	
 
					DEBUG(net, 1, "[%s] Banned ip tried to join (%s), refused", Tsocket::GetName(), entry.c_str());
 

	
 
					if (send(s, (const char*)p.buffer, p.size, 0) < 0) {
 
					if (p.TransferOut<int>(send, s, 0) < 0) {
 
						DEBUG(net, 0, "send failed with error %d", GET_LAST_ERROR());
 
					}
 
					closesocket(s);
 
@@ -80,7 +80,7 @@ public:
 
				Packet p(Tfull_packet);
 
				p.PrepareToSend();
 

	
 
				if (send(s, (const char*)p.buffer, p.size, 0) < 0) {
 
				if (p.TransferOut<int>(send, s, 0) < 0) {
 
					DEBUG(net, 0, "send failed with error %d", GET_LAST_ERROR());
 
				}
 
				closesocket(s);