Skip to content

Commit

Permalink
Prolong Client's lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuan989 committed Mar 10, 2015
1 parent a0a484c commit 2682e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/memcached/client/bench.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class Client : boost::noncopyable
else
{
conn_.reset();
client_.getLoop()->queueInLoop(boost::bind(&CountDownLatch::countDown, finished_));
}
}

Expand Down Expand Up @@ -121,7 +122,6 @@ class Client : boost::noncopyable
if (acked_ == requests_)
{
conn_->shutdown();
finished_->countDown();
}
}

Expand Down

0 comments on commit 2682e57

Please sign in to comment.