Dependencies:   mbed-http

Branch:
PassingRegression
Revision:
124:eae4512b131b
Parent:
121:ac4f59839e4f
Child:
125:d2830421006c
--- a/source/main-https.cpp	Fri Jun 14 21:13:46 2019 +0000
+++ b/source/main-https.cpp	Sat Jun 15 15:52:26 2019 +0000
@@ -346,6 +346,7 @@
 
 void stop_BLE()
 {
+    btle_thread.terminate();
     delete peripheral;
     ble_mgr_started = false;
     wait_ms(10);
@@ -374,6 +375,9 @@
 
 void stop_WiFi()
 {
+    wifi_evt_thread.terminate();
+    wifi_thread.terminate();
+    delete wiFiManager;
     delete network;
     wifi_mgr_started = false;
 }