exit app if fail to open plugin library (#449)
[platform/core/dotnet/launcher.git] / NativeLauncher / launcher / lib / core_runtime.cc
index 815f6b2..5f1be89 100644 (file)
@@ -336,6 +336,7 @@ int CoreRuntime::initialize(const char* appType, LaunchMode launchMode)
        // So, plugin initialize should be called before creating threads.
        if (initializePluginManager(appType) < 0) {
                _ERR("Failed to initialize PluginManager");
+               return -1;
        }
 
        // checkInjection checks dotnet-launcher run mode
@@ -538,12 +539,12 @@ int CoreRuntime::launch(const char* appId, const char* root, const char* path, i
                _ERR("executable path is null");
                return -1;
        }
-#if 0
+
        if (!isFile(path)) {
                _ERR("File not exist : %s", path);
                return -1;
        }
-#endif
+
        // VD has their own signal handler.
        if (!pluginHasLogControl()) {
                registerSigHandler();