diff options
author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-15 03:21:00 +0000 |
---|---|---|
committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-15 03:21:00 +0000 |
commit | ce7172f14d1c5bfeb77e0f32630d1d51d4b77d92 (patch) | |
tree | a7db59f6f75694acb11acaefb6f905462322b91d /libjava/java | |
parent | e0250dede4cd8aab1b907520c73b2b086a652148 (diff) | |
download | gcc-ce7172f14d1c5bfeb77e0f32630d1d51d4b77d92.tar.gz |
* java/net/natPlainDatagramSocketImpl.cc (close): Set timeout to 0.
* java/net/natSocketImpl.cc (close): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52312 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r-- | libjava/java/net/natPlainDatagramSocketImpl.cc | 1 | ||||
-rw-r--r-- | libjava/java/net/natPlainSocketImpl.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libjava/java/net/natPlainDatagramSocketImpl.cc b/libjava/java/net/natPlainDatagramSocketImpl.cc index e43102a1661..3c318d7667c 100644 --- a/libjava/java/net/natPlainDatagramSocketImpl.cc +++ b/libjava/java/net/natPlainDatagramSocketImpl.cc @@ -309,6 +309,7 @@ java::net::PlainDatagramSocketImpl::close () // the return value. ::close (fnum); fnum = -1; + timeout = 0; } void diff --git a/libjava/java/net/natPlainSocketImpl.cc b/libjava/java/net/natPlainSocketImpl.cc index 2ea46e6163b..2c6a2415cfb 100644 --- a/libjava/java/net/natPlainSocketImpl.cc +++ b/libjava/java/net/natPlainSocketImpl.cc @@ -428,6 +428,7 @@ java::net::PlainSocketImpl::close() } // Safe place to reset the file pointer. fnum = -1; + timeout = 0; } // Write a byte to the socket. |