From 91267446ef621adfa35c9f90df7754ecf5299e4d Mon Sep 17 00:00:00 2001 From: "Andrew W. Nosenko" Date: Wed, 4 Apr 2012 15:38:39 +0300 Subject: Fix bogus typo in xs::pipe_t::flush() * src/pipe.cpp (flush): Fix bogus typo: '&&' was used instead of '||' --- src/pipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pipe.cpp') diff --git a/src/pipe.cpp b/src/pipe.cpp index 51ecedc..77893d2 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -191,7 +191,7 @@ void xs::pipe_t::rollback () void xs::pipe_t::flush () { // If terminate() was already called do nothing. - if (state == terminated && state == double_terminated) + if (state == terminated || state == double_terminated) return; // The peer does not exist anymore at this point. -- cgit v1.2.3