Skip to content

Commit

Permalink
comment out decode-stream for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ztellman committed Dec 24, 2010
1 parent bfaf187 commit a4533f0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/gloss/io.clj
Expand Up @@ -112,23 +112,23 @@
(if-not bytes
(if-not (closed? src)
(enqueue dst nil)
(enqueue-and-close dst nil))
(close dst))
(let [bytes (-> bytes to-buf-seq bytes/dup-bytes)
[s reader remainder] (decode-byte-sequence
codec
(:reader state)
(concat (:bytes state) bytes))]
(if (closed? src)
(enqueue-and-close dst (when-not (empty? s) s))
(when-not (empty? s)
(apply enqueue dst s)))
(concat (:bytes state) bytes))]
(when-not (empty? s)
(apply enqueue dst s))
(when (closed? src)
(close dst))
{:reader reader :bytes remainder})))))
(fn [x]
(when-not (closed? src)
(restart x))))
(splice dst nil-channel)))

(defn decode-stream [codec ^InputStream stream]
'(defn decode-stream [codec ^InputStream stream]
(let [ch (channel)]
(.start
(Thread.
Expand Down

0 comments on commit a4533f0

Please sign in to comment.