unified-system-service: Relocate deinitialize code
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 14 Apr 2025 01:26:41 +0000 (10:26 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 14 Apr 2025 01:28:42 +0000 (10:28 +0900)
hal/plugin/device module deinitialize function was located in init function.
Relocates them to deviced_exit.

Change-Id: I68021a11d2a8c5fd7fbe1cb8e2d4f9c71435113c
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/core/main.c

index 22eaa02dfd4fd1f85eeb20d6784e42f5ae83f57c..aec50674138960104341f68dc5411243f398072c 100644 (file)
@@ -244,16 +244,15 @@ static int deviced_init (void *data)
        //g_main_loop_run(mainloop);
        //g_main_loop_unref(mainloop);
 
-       devices_exit(NULL);
-       resource_exit();
-
-       unload_plugins();
-
        return 0;
 }
 
 static int deviced_exit(void *data)
 {
+       devices_exit(NULL);
+       resource_exit();
+
+       unload_plugins();
        return 0;
 }