You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2006/09/26 01:30:20 UTC

svn commit: r449859 - /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/io/ReadWriteByteChannel.java

Author: jmsnell
Date: Mon Sep 25 16:30:19 2006
New Revision: 449859

URL: http://svn.apache.org/viewvc?view=rev&rev=449859
Log:
Close only flips the buffer if it hasn't already been flipped

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/io/ReadWriteByteChannel.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/io/ReadWriteByteChannel.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/io/ReadWriteByteChannel.java?view=diff&rev=449859&r1=449858&r2=449859
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/io/ReadWriteByteChannel.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/io/ReadWriteByteChannel.java Mon Sep 25 16:30:19 2006
@@ -151,7 +151,7 @@
   }
   
   public void close() throws IOException {
-    if (flipOnClose) flip();
+    if (flipOnClose && !flipped) flip();
   }
   
   public boolean isOpen() {