From 35bb3fe64a70e8de5382c2bfb9ee9009b714aea7 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 11 Dec 2015 14:36:45 +0100 Subject: [PATCH] Fixed race condition --- app/src/main/java/eu/faircode/netguard/SinkholeService.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/SinkholeService.java b/app/src/main/java/eu/faircode/netguard/SinkholeService.java index 7eda11e9..3f020746 100644 --- a/app/src/main/java/eu/faircode/netguard/SinkholeService.java +++ b/app/src/main/java/eu/faircode/netguard/SinkholeService.java @@ -285,8 +285,6 @@ public class SinkholeService extends VpnService { private void stopStats() { Log.i(TAG, "Stats stop"); stats = false; - mServiceHandler.removeMessages(MSG_STATS_START); - mServiceHandler.removeMessages(MSG_STATS_STOP); mServiceHandler.removeMessages(MSG_STATS_UPDATE); NotificationManagerCompat.from(SinkholeService.this).cancel(NOTIFY_TRAFFIC); }