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

Commit d181d672 authored by Roshan Pius's avatar Roshan Pius Committed by Android (Google) Code Review
Browse files

Merge "wifi(implementation): Clear wifi event callback objects while stopping"

parents 53ae7c6a f2e21c27
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;
}