From 358d01f3504915bdf1a1894fc7a337c9cdcb2c4f Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Sun, 10 Sep 2023 00:10:34 +0530 Subject: [PATCH] ConntectToService: Use ConnectedToWifi instead of WifiHotspotActive --- internal/platform/implementation/linux/wifi_hotspot.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/platform/implementation/linux/wifi_hotspot.cc b/internal/platform/implementation/linux/wifi_hotspot.cc index 151d4748..f12c4c69 100644 --- a/internal/platform/implementation/linux/wifi_hotspot.cc +++ b/internal/platform/implementation/linux/wifi_hotspot.cc @@ -35,7 +35,7 @@ std::unique_ptr NetworkManagerWifiHotspotMedium::ConnectToService( absl::string_view ip_address, int port, CancellationFlag *cancellation_flag) { - if (!WifiHotspotActive()) { + if (!ConnectedToWifi()) { NEARBY_LOGS(ERROR) << __func__ << ": Cannot connect to service without an active WiFi hotspot";