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>
//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;
}