Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2007-11-12 09:45:36 +0300
committerjfrijters <jfrijters>2007-11-12 09:45:36 +0300
commit5262271082c8c13f25ffdd1ce3d3b900c7ed3e04 (patch)
treeb896477c64ef18ef6ecd004a161fc150a80ded14 /openjdk/sun/nio/ch
parent6695ae96dbde072c4c2385efa71731c0522509fb (diff)
Close the file descriptor after releasing the locks.
Diffstat (limited to 'openjdk/sun/nio/ch')
-rw-r--r--openjdk/sun/nio/ch/FileChannelImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/openjdk/sun/nio/ch/FileChannelImpl.java b/openjdk/sun/nio/ch/FileChannelImpl.java
index db8c0b38..3f24124e 100644
--- a/openjdk/sun/nio/ch/FileChannelImpl.java
+++ b/openjdk/sun/nio/ch/FileChannelImpl.java
@@ -119,8 +119,6 @@ public class FileChannelImpl
protected void implCloseChannel() throws IOException {
- fd.close();
-
// Invalidate and release any locks that we still hold
if (fileLockTable != null) {
fileLockTable.removeAll( new FileLockTable.Releaser() {
@@ -147,6 +145,8 @@ public class FileChannelImpl
else
assert false;
+ } else {
+ fd.close();
}
}