7031238: Problem with fix for 6981922

Reviewed-by: chegar
This commit is contained in:
Michael McMahon 2011-03-25 16:23:15 -07:00
parent 76ed3a763b
commit 5f3e767f80

View File

@ -26,6 +26,7 @@ package java.net;
import java.io.IOException;
import java.io.FileDescriptor;
import sun.net.ResourceManager;
/**
* This class defines the plain DatagramSocketImpl that is used for all
@ -108,6 +109,7 @@ class TwoStacksPlainDatagramSocketImpl extends AbstractPlainDatagramSocketImpl
protected void close() {
if (fd != null || fd1 != null) {
datagramSocketClose();
ResourceManager.afterUdpClose();
fd = null;
fd1 = null;
}