diff options
author | Daniel Campora <daniel@wipy.io> | 2015-05-23 19:56:22 +0200 |
---|---|---|
committer | Daniel Campora <daniel@wipy.io> | 2015-05-24 11:44:06 +0200 |
commit | 9f8c5456befbf33cf8e02de99b6b9f5a417f006a (patch) | |
tree | dc1339e90c801a2361dd19b0a3b4430a930a1ae5 /cc3200/mods/modusocket.c | |
parent | 0d31bbc7fa3bdf10a14d92bb010a5016dc6101af (diff) | |
download | micropython-9f8c5456befbf33cf8e02de99b6b9f5a417f006a.tar.gz micropython-9f8c5456befbf33cf8e02de99b6b9f5a417f006a.zip |
cc3200: Reset the servers and close user sockets on WLAN disconection.
This is needed to avoid half-open connections.
Diffstat (limited to 'cc3200/mods/modusocket.c')
-rw-r--r-- | cc3200/mods/modusocket.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cc3200/mods/modusocket.c b/cc3200/mods/modusocket.c index 68a3252c98..1a7cbe8525 100644 --- a/cc3200/mods/modusocket.c +++ b/cc3200/mods/modusocket.c @@ -94,7 +94,6 @@ void modusocket_enter_sleep (void) { fd_set socketset; int16_t maxfd = 0; - sl_LockObjLock (&modusocket_LockObj, SL_OS_WAIT_FOREVER); for (int i = 0; i < MOD_NETWORK_MAX_SOCKETS; i++) { int16_t sd; if ((sd = modusocket_sockets[i].sd) >= 0) { @@ -105,7 +104,6 @@ void modusocket_enter_sleep (void) { // wait for any of the sockets to become ready... sl_Select(maxfd + 1, &socketset, NULL, NULL, NULL); - sl_LockObjUnlock (&modusocket_LockObj); } void modusocket_close_all_user_sockets (void) { |