Skip to content
Snippets Groups Projects
Commit 0197d825 authored by JP Abgrall's avatar JP Abgrall Committed by Android (Google) Code Review
Browse files

Merge "core/java NetworkManagement: Don't untag sockets willy-nilly"

parents d1106fc9 36bd9844
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,8 @@ public final class NetworkManagementSocketTagger extends SocketTagger {
private void unTagSocketFd(FileDescriptor fd) throws IOException {
int fdNum = fd.getInt$();
if (fdNum == -1) return;
final SocketTags options = threadSocketTags.get();
if (fdNum == -1 || (options.statsTag == -1 && options.statsUid == -1)) return;
String cmd = "u " + fdNum;
internalModuleCtrl(cmd);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment