Permalink
Browse files

/close should not fetch a new value - fixes #19

  • Loading branch information...
1 parent 99d7176 commit 0132f68e65ad315b07564632ffb62926e65d0eeb @erikfrey erikfrey committed Oct 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/net/handler.cpp
View
@@ -179,8 +179,8 @@ void handler::get()
else if (pop_stream_)
return error("close current item first", "CLIENT_ERROR");
- if (req_.get_abort)
- return end(); // aborts go no further
+ if ((req_.get_close && !req_.get_open) || req_.get_abort)
+ return end(); // closes/aborts go no further
if (!pop_stream_.open(queues_[req_.queue]))
{

0 comments on commit 0132f68

Please sign in to comment.