Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
gotta reset here too
Browse files Browse the repository at this point in the history
  • Loading branch information
erikfrey committed Aug 13, 2012
1 parent 753191c commit df419f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/net/handler.cpp
Expand Up @@ -217,9 +217,13 @@ void handler::get()
void handler::get_on_queue_return(const boost::system::error_code& e)
{
if (e == asio::error::timed_out)
{
pop_stream_.reset();
return done(true, "END\r\n");
}
else if (e)
{
pop_stream_.reset();
log::ERROR("handler<%1%>::get_on_queue_return: %2%", shared_from_this(), e.message());
return done(false, "SERVER_ERROR " + e.message() + "\r\n");
}
Expand Down

0 comments on commit df419f3

Please sign in to comment.