diff --git a/Miracast/MiracastService/MiracastService.cpp b/Miracast/MiracastService/MiracastService.cpp index 653e538e6..c9fdaaab5 100644 --- a/Miracast/MiracastService/MiracastService.cpp +++ b/Miracast/MiracastService/MiracastService.cpp @@ -276,12 +276,11 @@ namespace WPEFramework if (!m_isServiceInitialized) { MiracastError ret_code = MIRACAST_OK; - - InitializeIARM(); m_miracast_ctrler_obj = MiracastController::getInstance(ret_code, this,p2p_ctrl_iface); if (nullptr != m_miracast_ctrler_obj) { + InitializeIARM(); m_CurrentService = service; getThunderPlugins(); // subscribe for event