base-dir proposals + repeat-timout logik

This commit is contained in:
Arndt Brenschede 2019-07-20 13:10:48 +02:00
parent 80e36d4bb5
commit e1f8fce85a
2 changed files with 42 additions and 13 deletions

View file

@ -72,6 +72,12 @@ public class BRouterWorker
waypoints = readPositions(params);
try
{
writeTimeoutData( rc );
}
catch( Exception e ) {}
RoutingEngine cr = new RoutingEngine( null, null, segmentDir, waypoints, rc );
cr.quite = true;
cr.doRun( maxRunningTime );
@ -89,14 +95,6 @@ public class BRouterWorker
if ( cr.getErrorMessage() != null )
{
if ( cr.getErrorMessage().indexOf( "timeout" ) >= 0 )
{
try
{
writeTimeoutData( rc );
}
catch( Exception e ) {}
}
return cr.getErrorMessage();
}