From 6824b31ede052d0b1d142191a7470b5534ccf290 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 3 Jan 2011 23:23:33 +0000 Subject: [PATCH] realtime: do not panic if we consider an unknown movposcomb - just predict a problem --- hostside/safety.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hostside/safety.c b/hostside/safety.c index 2780bc0..9214599 100644 --- a/hostside/safety.c +++ b/hostside/safety.c @@ -414,8 +414,8 @@ static int pred_getmovpos(TrackLocation *t, TrackAdvanceContext *c, !t->seg->now_present && t->seg->motion_newplan) *use_io= movpos_change_intent(t->seg->motion_newplan); - if (*use_io<0) safety_panic(u->train, t->seg, - "track route unexpectedly not known"); + if (*use_io<0) + return predict_problem(u, t->seg, "track route not known"); return 0; } -- 2.30.2