Minor bug correction

This commit is contained in:
anschrammh 2019-10-14 22:59:31 +02:00
parent 99e0f7d82c
commit ef0ab58add

View File

@ -6,7 +6,7 @@
#include "TCPClient.h"
#define MAX_CLIENT -1
//#define DEBUG_TCPS
#define DEBUG_TCPS
template <typename T>
@ -137,12 +137,9 @@ class TCPServer
#endif
_currentClient->_clientState = TCPClient::DISCARDED;
}
if(_currentClient->_dataSize > 0)
{
_currentClient->_newDataAvailable = false;
}
processClientData(_currentClient);//We process the actual data
_currentClient->_newDataAvailable = false;
if(_currentClient->_clientState == TCPClient::ClientState::DISCARDED)
{