more re-use after timeout

This commit is contained in:
Arndt 2015-10-25 13:39:23 +01:00
parent 723cf90dd2
commit 14a18fd770
6 changed files with 301 additions and 163 deletions

View file

@ -52,12 +52,9 @@ public class BRouterWorker
RoutingEngine cr = new RoutingEngine( null, null, segmentDir, readPositions(params), rc );
cr.quite = true;
cr.doRun( maxRunningTime );
if ( cr.getErrorMessage() != null )
{
return cr.getErrorMessage();
}
// store new reference track if any
// (can exist fot timeed-out search)
if ( cr.getFoundRawTrack() != null )
{
try
@ -67,6 +64,10 @@ public class BRouterWorker
catch( Exception e ) {}
}
if ( cr.getErrorMessage() != null )
{
return cr.getErrorMessage();
}
String format = params.getString("trackFormat");
boolean writeKml = format != null && "kml".equals( format );