From 124ebd2dd6a579ba61e68c8be9c78d1a501837cb Mon Sep 17 00:00:00 2001 From: hitstergtd Date: Sun, 8 May 2016 18:30:17 +0100 Subject: [PATCH] Problem: UDP engine code not indented properly Solution: Indent it. --- src/session_base.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/session_base.cpp b/src/session_base.cpp index cc15cb84..53d979ce 100644 --- a/src/session_base.cpp +++ b/src/session_base.cpp @@ -571,31 +571,31 @@ void zmq::session_base_t::start_connecting (bool wait_) } #endif -if (addr->protocol == "udp") { - zmq_assert (options.type == ZMQ_DISH || options.type == ZMQ_RADIO); + if (addr->protocol == "udp") { + zmq_assert (options.type == ZMQ_DISH || options.type == ZMQ_RADIO); - udp_engine_t* engine = new (std::nothrow) udp_engine_t (); - alloc_assert (engine); + udp_engine_t* engine = new (std::nothrow) udp_engine_t (); + alloc_assert (engine); - bool recv = false; - bool send = false; + bool recv = false; + bool send = false; - if (options.type == ZMQ_RADIO) { - send = true; - recv = false; + if (options.type == ZMQ_RADIO) { + send = true; + recv = false; + } + else if (options.type == ZMQ_DISH) { + send = false; + recv = true; + } + + int rc = engine->init (addr, send, recv); + errno_assert (rc == 0); + + send_attach (this, engine); + + return; } - else if (options.type == ZMQ_DISH) { - send = false; - recv = true; - } - - int rc = engine->init (addr, send, recv); - errno_assert (rc == 0); - - send_attach (this, engine); - - return; -} #ifdef ZMQ_HAVE_OPENPGM