[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Allow Socket.close() to be called multiple times
From: |
Mark Wielaard |
Subject: |
[PATCH] Allow Socket.close() to be called multiple times |
Date: |
Fri, 26 Dec 2003 15:21:58 +0100 |
Hi,
Small patch again from the kaffe hackers.
2003-12-26 Dalibor Topic <address@hidden>
* java/net/Socket.java (close): Allow a Socket to be closed
multiple times without throwing an exception.
I will commit this.
Cheers,
Mark
Index: java/net/Socket.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/net/Socket.java,v
retrieving revision 1.39
diff -u -r1.39 Socket.java
--- java/net/Socket.java 2 Dec 2003 15:42:34 -0000 1.39
+++ java/net/Socket.java 26 Dec 2003 14:21:22 -0000
@@ -1003,7 +1003,7 @@
public synchronized void close () throws IOException
{
if (isClosed())
- throw new SocketException("socket is closed");
+ return;
getImpl().close();
impl = null;
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Allow Socket.close() to be called multiple times,
Mark Wielaard <=