提交 2945bbaa 编写于 作者: M michaelm

7031238: Problem with fix for 6981922

Reviewed-by: chegar
上级 fe373f32
...@@ -26,6 +26,7 @@ package java.net; ...@@ -26,6 +26,7 @@ package java.net;
import java.io.IOException; import java.io.IOException;
import java.io.FileDescriptor; import java.io.FileDescriptor;
import sun.net.ResourceManager;
/** /**
* This class defines the plain DatagramSocketImpl that is used for all * This class defines the plain DatagramSocketImpl that is used for all
...@@ -108,6 +109,7 @@ class TwoStacksPlainDatagramSocketImpl extends AbstractPlainDatagramSocketImpl ...@@ -108,6 +109,7 @@ class TwoStacksPlainDatagramSocketImpl extends AbstractPlainDatagramSocketImpl
protected void close() { protected void close() {
if (fd != null || fd1 != null) { if (fd != null || fd1 != null) {
datagramSocketClose(); datagramSocketClose();
ResourceManager.afterUdpClose();
fd = null; fd = null;
fd1 = null; fd1 = null;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册