Skip to content

Commit

Permalink
Fix Gray stream method STREAM-LISTEN
Browse files Browse the repository at this point in the history
  • Loading branch information
sionescu committed Aug 5, 2020
1 parent 855bfe6 commit dac715c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/streams/gray/gray-stream-methods.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,10 @@

(defmethod stream-listen ((stream dual-channel-gray-stream))
(let ((char (stream-read-char-no-hang stream)))
(cond ((characterp char) (stream-unread-char stream char) t)
((eql :eof char) nil)
(t t))))
(cond ((characterp char)
(stream-unread-char stream char)
t)
(t nil))))


;;;-------------------------------------------------------------------------
Expand Down

0 comments on commit dac715c

Please sign in to comment.