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.
Diff: Socket.cpp
- Revision:
- 36:2e5eccf30a84
- Parent:
- 33:2fd212f8da61
--- a/Socket.cpp Tue Apr 19 18:34:42 2016 -0500 +++ b/Socket.cpp Wed Apr 20 00:46:23 2016 +0000 @@ -52,8 +52,10 @@ if (!_socket) { return 0; } - - void *socket = _socket; + + _iface->socket_attach(_socket, 0, 0); + + void *volatile socket = _socket; _socket = 0; return _iface->socket_close(socket); }