Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 478ad5c9 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

wifi(implementation): Clear wifi event callback objects while stopping am: 4c1b6780

Change-Id: Ibd07d9585b3048c175888296b2bef570ba14ee4b
parents 6f3ddf94 4c1b6780
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -124,6 +124,8 @@ WifiStatus Wifi::startInternal() {
            }
        }
        LOG(ERROR) << "Wifi HAL start failed";
        // Clear the event callback objects since the HAL start failed.
        event_cb_handler_.invalidate();
    }
    return wifi_status;
}
@@ -158,6 +160,8 @@ WifiStatus Wifi::stopInternal(
        }
        LOG(ERROR) << "Wifi HAL stop failed";
    }
    // Clear the event callback objects since the HAL is now stopped.
    event_cb_handler_.invalidate();
    return wifi_status;
}