abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r449859 - /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/util/io/ReadWriteByteChannel.java
Date Mon, 25 Sep 2006 23:30:20 GMT
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() {



Mime
View raw message