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.
This commit is contained in:
Kevin Hester 2020-03-03 07:36:35 -08:00
parent bb0b2e72c8
commit 1f07d6735b

View File

@ -332,6 +332,7 @@ BLEService *createMeshBluetoothService(BLEServer *server)
void destroyMeshBluetoothService() void destroyMeshBluetoothService()
{ {
assert(meshService); assert(meshService);
meshService->stop();
delete meshService; delete meshService;
meshFromNumCharacteristic = NULL; meshFromNumCharacteristic = NULL;