diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/connection.cpp | 2 |
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; |