From caed24ba9b5b792025c4e3f4b7b2a1367b5b5e1e Mon Sep 17 00:00:00 2001 From: Peter Kalauskas Date: Wed, 14 Aug 2019 12:11:57 -0700 Subject: Convert LazyServiceRegistrar usage to singleton Test: lshal Bug: 139376253 Change-Id: I32cb803fb73aa15b52676847b6e7eb09b86657dc --- wifi/1.3/default/service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wifi/1.3') diff --git a/wifi/1.3/default/service.cpp b/wifi/1.3/default/service.cpp index fcbc37c12b..0b41d28da9 100644 --- a/wifi/1.3/default/service.cpp +++ b/wifi/1.3/default/service.cpp @@ -58,7 +58,7 @@ int main(int /*argc*/, char** argv) { std::make_shared(iface_tool), std::make_shared()); if (kLazyService) { - LazyServiceRegistrar registrar; + auto registrar = LazyServiceRegistrar::getInstance(); CHECK_EQ(registrar.registerService(service), android::NO_ERROR) << "Failed to register wifi HAL"; } else { -- cgit v1.2.3