Modify shutdown time of scanner daemon 38/107938/2
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 2 Jan 2017 03:44:15 +0000 (12:44 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Mon, 2 Jan 2017 03:58:48 +0000 (12:58 +0900)
Modify shutdown time of the scanner daemon from 30 sec to 60 sec to fix TC issues

Change-Id: I14c3eb12ba973c24c648fd619f8464d05e4292ea
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/media-server.spec
src/server/media-server-scanner.c

index 620acfb..962705e 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       media-server
 Summary:    A server for media content management
-Version:    0.3.26
+Version:    0.3.27
 Release:    0
 Group:      Multimedia/Service
 License:    Apache-2.0
index e37ad49..0c84256 100755 (executable)
@@ -184,8 +184,8 @@ void ms_cleanup_scanner(void)
                        unlink(MS_SCANNER_FIFO_PATH_RES);
                        unlink(MS_SCANNER_FIFO_PATH_REQ);
 
-                       g_source_destroy(g_main_context_find_source_by_id(g_main_loop_get_context (mainloop), alarm_id));
-                       g_source_destroy(g_main_context_find_source_by_id(g_main_loop_get_context (mainloop), receive_id));
+                       g_source_destroy(g_main_context_find_source_by_id(g_main_loop_get_context(mainloop), alarm_id));
+                       g_source_destroy(g_main_context_find_source_by_id(g_main_loop_get_context(mainloop), receive_id));
 
                        scanner_cleaned = true;
 
@@ -281,7 +281,7 @@ int ms_scanner_start(void)
                        receive_id = g_source_attach(res_source, res_context);
                        g_source_unref(res_source);
 
-                       _ms_add_timeout(30, (GSourceFunc)_ms_stop_scanner, res_channel);
+                       _ms_add_timeout(60, (GSourceFunc)_ms_stop_scanner, res_channel);
 
                        ret = MS_MEDIA_ERR_NONE;
                } else {