Skip to content

Commit

Permalink
rpc: not stop client in error state
Browse files Browse the repository at this point in the history
Client in error state are already closed on in process to be closed.
  • Loading branch information
Gleb Natapov authored and avikivity committed Nov 23, 2015
1 parent aff91d2 commit 9392fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/rpc.hh
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ public:
}

future<> stop() {
this->_error = true;
if (_connected) {
if (_connected && !this->_error) {
this->_error = true;
return connection::stop();
} else {
// connection::stop will fail on shutdown(); since we can't shutdown a
Expand Down

0 comments on commit 9392fbe

Please sign in to comment.