Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Socket by
Diff: TCPSocketServer.cpp
- Revision:
- 11:3d83c348fb8b
- Parent:
- 10:d24738f4ef99
- Child:
- 15:41e3af01f58e
diff -r d24738f4ef99 -r 3d83c348fb8b TCPSocketServer.cpp --- a/TCPSocketServer.cpp Tue Jul 31 11:50:55 2012 +0000 +++ b/TCPSocketServer.cpp Wed Aug 01 13:02:32 2012 +0000 @@ -71,10 +71,7 @@ if (fd < 0) return -1; //Accept failed connection._sock_fd = fd; + connection._is_connected = true; return 0; } - -TCPSocketServer::~TCPSocketServer() { - close(); //Don't want to leak -}