We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bb31a3 commit a638b24Copy full SHA for a638b24
project.clj
@@ -1,4 +1,4 @@
1
-(defproject byte-streams "0.2.4-alpha2"
+(defproject byte-streams "0.2.4-alpha3"
2
:description "A simple way to handle the menagerie of Java byte represenations."
3
:license {:name "MIT License"
4
:url "http://opensource.org/licenses/MIT"}
src/byte_streams.clj
@@ -696,7 +696,12 @@
696
(ByteBuffer/allocateDirect n)
697
(ByteBuffer/allocate n))]
698
699
- (while (pos? (.read this buf)))
+ (loop []
700
+ (when (try
701
+ (pos? (.read this buf))
702
+ (catch Throwable e
703
+ false))
704
+ (recur)))
705
706
(when (pos? (.position buf))
707
(.flip buf))))
0 commit comments