diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index 488613c03c..9390708f9b 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -6461,6 +6461,9 @@ ble_gap_preempt_done(void) void *arg; } slaves[BLE_ADV_INSTANCES]; + master_cb = NULL; + master_arg = NULL; + disc_preempted = 0; /* Protects slaves from accessing by multiple threads */