summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-11 17:38:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-11 17:38:34 +0000
commita485686bcd493e184aef35efde3b276ec933aec9 (patch)
treee65b15acd421b639be895837d594772055ba835e
parent0bf762ee3898a853066adecf1cc85a71b077591d (diff)
More fixes :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@539 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/connection.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 574139e1a..6e82bed9b 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -177,12 +177,14 @@ bool connection::SendPacket(char *message, char* host, int port, long ourkey)
if (p2.id != p.id)
{
+ recvfrom(fd,&p2,sizeof(p2),0,(sockaddr*)&host_address,&host_address_size);
log(DEFAULT,"ERROR! connection::SendPacket() received an ack for a packet it didnt send!");
this->state = STATE_CLEAR;
return false;
}
else
{
+ recvfrom(fd,&p2,sizeof(p2),0,(sockaddr*)&host_address,&host_address_size);
log(DEFAULT,"Successfully received ACK");
this->state = STATE_CLEAR;
return true;