From 6ab2ee629f6b7523c2290cdec0432c6661531673 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 17 Mar 2016 09:44:23 +0100 Subject: [PATCH] Fix issue with route recalculation crash --- OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } }