Minor bug correction
This commit is contained in:
parent
99e0f7d82c
commit
ef0ab58add
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user