only attempt to start eeze_scanner a couple times before giving up
authorMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 5 Dec 2014 18:53:23 +0000 (13:53 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 5 Dec 2014 18:55:29 +0000 (13:55 -0500)
ref T1612

src/bin/e_fm/e_fm_main_eeze.c

index b62254b76c7128b58a46da1dcfb6dfe9b09b44db..929ddf8777ed61f5e8990d31071920c296a82c2d 100644 (file)
@@ -668,7 +668,12 @@ _scanner_write(const void *eet_data __UNUSED__, size_t size __UNUSED__, void *us
 static void
 _scanner_run(void)
 {
+   static int count;
+
    scanner = ecore_exe_pipe_run("eeze_scanner", ECORE_EXE_NOT_LEADER, pfx);
+   if (!scanner)
+     if (++count == 3)
+       _e_fm_main_catch(EFM_MODE_USING_RASTER_MOUNT);
 }