1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-30 20:05:04 +00:00

Fixed race condition

This commit is contained in:
M66B 2015-12-11 14:36:45 +01:00
parent c35e493419
commit 35bb3fe64a

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