Compare commits

..

No commits in common. "4990a7ff25440ef5dad70043d74d62612193087b" and "b2b0170c01a3bc5b5edd36a388735b197d18e8be" have entirely different histories.

2 changed files with 2 additions and 12 deletions

View File

@ -52,19 +52,9 @@ class FTPServer : public TCPServer<T>
virtual ~FTPServer() virtual ~FTPServer()
{ {
_dataServer.stop();
free(_login); free(_password); free(_login); free(_password);
} }
virtual void stop()
{
if(TCPServer<T>::_serverStarted)
{
_dataServer.stop();
TCPServer<T>::stop();
}
}
protected: protected:
virtual T* createNewClient(WiFiClient wc) virtual T* createNewClient(WiFiClient wc)
{ {

View File

@ -22,8 +22,8 @@ class TCPClient
WiFiClient _client; WiFiClient _client;
uint8_t *_data; //The actual data uint8_t *_data; //The actual data
uint16_t _dataSize; //The logical size of the data contained uint16_t _dataSize; //The logic size of the data contained
uint16_t _dataBufferSize; //The physical size of the buffer uint16_t _dataBufferSize; //The physic size of the buffer
boolean _newDataAvailable; boolean _newDataAvailable;
uint8_t _id; uint8_t _id;