From 1f07d6735b6bbdea0e99bd4103276db4c369f16b Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Tue, 3 Mar 2020 07:36:35 -0800 Subject: [PATCH] fix a nasty sleep bug: we weren't stopping our old mesh service so it would kinda keep living (along with the recreated one) when we come back from sleep. --- src/MeshBluetoothService.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MeshBluetoothService.cpp b/src/MeshBluetoothService.cpp index d9f51f455..3624d483f 100644 --- a/src/MeshBluetoothService.cpp +++ b/src/MeshBluetoothService.cpp @@ -332,6 +332,7 @@ BLEService *createMeshBluetoothService(BLEServer *server) void destroyMeshBluetoothService() { assert(meshService); + meshService->stop(); delete meshService; meshFromNumCharacteristic = NULL;