summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew W. Nosenko <andrew.w.nosenko@gmail.com>2012-04-04 15:38:39 +0300
committerMartin Sustrik <sustrik@250bpm.com>2012-04-06 12:41:04 +0200
commit91267446ef621adfa35c9f90df7754ecf5299e4d (patch)
tree1d8e4de49cddd6e20d5a6f1e859cd7ef6ab8ff85
parent421394768c7d00a3971a06c7d6794145b4c785b4 (diff)
Fix bogus typo in xs::pipe_t::flush()
* src/pipe.cpp (flush): Fix bogus typo: '&&' was used instead of '||'
-rw-r--r--src/pipe.cpp2
1 files changed, 1 insertions, 1 deletions
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.