summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-08-11 19:59:43 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-08-11 19:59:43 +0000
commit081ebc4d4656d5b65ef3ba932e2048482e5f8eb3 (patch)
treeeec0f8e8df44586a93324f286b2a07f2cfcb30af
parentc1a459d4039f0f09e9171769b0f88027b6770b5e (diff)
downloadnavit-svn-081ebc4d4656d5b65ef3ba932e2048482e5f8eb3.tar.gz
Fix:vehicle_file:More realistic timing when replaying nmea logs
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3524 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--navit/vehicle/file/vehicle_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/vehicle/file/vehicle_file.c b/navit/vehicle/file/vehicle_file.c
index 088b16ac..ec3d2c26 100644
--- a/navit/vehicle/file/vehicle_file.c
+++ b/navit/vehicle/file/vehicle_file.c
@@ -619,6 +619,8 @@ vehicle_file_io(struct vehicle_priv *priv)
dbg(1, "line='%s'\n", str);
rc +=vehicle_file_parse(priv, str);
str = tok;
+ if (priv->file_type == file_type_file && rc)
+ break;
}
if (str != priv->buffer) {