mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-16 00:16:04 +00:00
2003-12-02 Michael Koch <konqueror@gmx.de>
* java/net/DatagramSocket.java (close): Close associated DatagramChannel object. * java/net/ServerSocket.java * java/net/Socket.java (close): Reset impl and bound before calling getChannel().close() to prevent from loops. From-SVN: r74183
This commit is contained in:
committed by
Michael Koch
parent
d9b526cc1d
commit
c531dd016b
@@ -1006,12 +1006,11 @@ public class Socket
|
||||
throw new SocketException("socket is closed");
|
||||
|
||||
getImpl().close();
|
||||
impl = null;
|
||||
bound = false;
|
||||
|
||||
if (getChannel() != null)
|
||||
getChannel().close();
|
||||
|
||||
impl = null;
|
||||
bound = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user