From aa3540e6576154069a1f353e8d39211a29f9ce6a Mon Sep 17 00:00:00 2001 From: bjovke Date: Tue, 11 Apr 2017 13:14:13 +0200 Subject: [PATCH] Problem: misleading indentation and visually ambiguous if/else block ordering. Solution: fixed indentation and if/else block. --- src/proxy.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/proxy.cpp b/src/proxy.cpp index 8217a010..b5849f6a 100644 --- a/src/proxy.cpp +++ b/src/proxy.cpp @@ -319,7 +319,7 @@ int zmq::proxy ( if (msg.size () == 6 && memcmp (msg.data (), "RESUME", 6) == 0) { state = active; poller_wait = poller_in; - } else + } else { if (msg.size () == 9 && memcmp (msg.data (), "TERMINATE", 9) == 0) state = terminated; else { @@ -327,7 +327,8 @@ int zmq::proxy ( puts ("E: invalid command sent to proxy"); zmq_assert (false); } - control_in = false; + } + control_in = false; } if (state == active) {