Fix:vehicle_file:Don't hog the cpu when eof is reached and on_eof=stop is set
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 13 Sep 2008 19:25:45 +0000 (19:25 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 13 Sep 2008 19:25:45 +0000 (19:25 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1384 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/vehicle/file/vehicle_file.c

index 1ea58e3..e00df8e 100644 (file)
@@ -364,6 +364,7 @@ vehicle_file_io(GIOChannel * iochan, GIOCondition condition, gpointer t)
                                vehicle_file_open(priv);
                                break;
                        case 1:
+                               return FALSE;
                                break;
                        case 2:
                                exit(0);