Host library for controlling a WiConnect enabled Wi-Fi module.

Dependents:   wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more

Revision:
11:ea484e1b7fc4
Parent:
8:1fad4ca6c6a4
Child:
13:2b51f5267c92
--- a/internal/network/NetworkJoin.cpp	Mon Aug 11 21:59:00 2014 -0700
+++ b/internal/network/NetworkJoin.cpp	Tue Aug 12 02:34:46 2014 -0700
@@ -51,15 +51,11 @@
 #ifdef WICONNECT_ASYNC_TIMER_ENABLED
             if(completeHandler_.isValid())
             {
-                if(monitorTimer.isRunning())
-                {
-                    result = WICONNECT_MONITOR_NOT_AVAILABLE;
-                }
-                else
-                {
-                    completeHandler = completeHandler_;
-                    monitorTimer.start(this, &NetworkInterface::joinStatusMonitor, 1000);
-                }
+#ifdef WICONNECT_ASYNC_TIMER_ENABLED
+                monitorTimer.stop();
+#endif
+                completeHandler = completeHandler_;
+                monitorTimer.start(this, &NetworkInterface::joinStatusMonitor, 1000);
             }
 #endif
         }