Revert "Get proper socket fd"

This reverts commit 67abc81566.
pull/214/head
M66B 12 months ago
parent 0059e7c641
commit 2a3b0a881c

@ -325,7 +325,6 @@ public class WriteTimeoutSocket extends Socket {
//The loop handles issues with non-public classes between
//java.net.Socket and the actual socket type held in this object.
//Must inspect java.net.Socket to ensure compatiblity with old behavior.
/*
for (Class<?> k = socket.getClass(); k != Object.class; k = k.getSuperclass()) {
try {
Method m = k.getDeclaredMethod("getFileDescriptor$");
@ -337,9 +336,6 @@ public class WriteTimeoutSocket extends Socket {
}
}
return null;
*/
android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.fromSocket(socket);
return (pfd == null ? null :pfd.getFileDescriptor());
}
}

Loading…
Cancel
Save