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.
1.2-legacy
Kevin Hester 2020-03-03 07:36:35 -08:00
rodzic bb0b2e72c8
commit 1f07d6735b
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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