diff options
Diffstat (limited to 'libjava/java/net/ServerSocket.java')
-rw-r--r-- | libjava/java/net/ServerSocket.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libjava/java/net/ServerSocket.java b/libjava/java/net/ServerSocket.java index 4e7f58a..a691d20 100644 --- a/libjava/java/net/ServerSocket.java +++ b/libjava/java/net/ServerSocket.java @@ -353,15 +353,15 @@ public class ServerSocket */ public void close () throws IOException { - if (!isClosed()) - { - impl.close(); - impl = null; - bound = false; + if (isClosed()) + return; + + impl.close(); + impl = null; + bound = false; - if (getChannel() != null) - getChannel().close(); - } + if (getChannel() != null) + getChannel().close(); } /** |