mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-14 21:00:37 +08:00
parent
6942b252ea
commit
e0112eaa3f
@ -1130,8 +1130,10 @@ public class CaptureService extends VpnService implements Runnable {
|
||||
continue;
|
||||
}
|
||||
|
||||
if(item.first == null) // termination request
|
||||
if(item.first == null) { // termination request
|
||||
Log.i(TAG, "Connection update thread exit requested");
|
||||
break;
|
||||
}
|
||||
|
||||
ConnectionDescriptor[] new_conns = item.first;
|
||||
ConnectionUpdate[] conns_updates = item.second;
|
||||
|
||||
@ -23,7 +23,7 @@ public class Blocklist extends MatchList {
|
||||
|
||||
public synchronized boolean unblockAppForMinutes(int uid, int minutes) {
|
||||
Long old_val = mUidToGrace.put(uid, SystemClock.uptimeMillis() + (minutes * 60_000L));
|
||||
Log.d(TAG, "Grace app: " + uid + " for " + minutes + " minutes (old: " + old_val + ")");
|
||||
Log.i(TAG, "Grace app: " + uid + " for " + minutes + " minutes (old: " + old_val + ")");
|
||||
return (old_val == null);
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@ public class Blocklist extends MatchList {
|
||||
Map.Entry<Integer, Long> entry = iter.next();
|
||||
|
||||
if(now >= entry.getValue()) {
|
||||
Log.d(TAG, "Grace period ended for app: " + entry.getKey());
|
||||
Log.i(TAG, "Grace period ended for app: " + entry.getKey());
|
||||
iter.remove();
|
||||
changed = true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user