Fixed race condition

This commit is contained in:
M66B 2015-12-11 14:36:45 +01:00
parent c35e493419
commit 35bb3fe64a
1 changed files with 0 additions and 2 deletions

View File

@ -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);
}