mirror of https://github.com/M66B/NetGuard.git
Fixed race condition
This commit is contained in:
parent
c35e493419
commit
35bb3fe64a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue