6938230: (so) SocketAdaptor.close() does not translate IOException resulting in Error
Reviewed-by: chegar
This commit is contained in:
parent
82adf1a224
commit
356e978bce
@ -144,11 +144,7 @@ public class ServerSocketAdaptor // package-private
|
||||
}
|
||||
|
||||
public void close() throws IOException {
|
||||
try {
|
||||
ssc.close();
|
||||
} catch (Exception x) {
|
||||
Net.translateException(x);
|
||||
}
|
||||
}
|
||||
|
||||
public ServerSocketChannel getChannel() {
|
||||
|
@ -404,11 +404,7 @@ public class SocketAdaptor
|
||||
}
|
||||
|
||||
public void close() throws IOException {
|
||||
try {
|
||||
sc.close();
|
||||
} catch (Exception x) {
|
||||
Net.translateToSocketException(x);
|
||||
}
|
||||
}
|
||||
|
||||
public void shutdownInput() throws IOException {
|
||||
|
Loading…
Reference in New Issue
Block a user