diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java index 51a410f94b..73fd932879 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java +++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java @@ -921,10 +921,10 @@ public class RoutingHelper { currentRunningJob = new Thread(new Runnable() { @Override public void run() { - try { - r.run(); - } finally { - synchronized (RoutingHelper.this) { + synchronized (RoutingHelper.this) { + try { + r.run(); + } finally { currentRunningJob = null; } }