Commit 92827e45 authored by Martin Hurton's avatar Martin Hurton

Small code cleanup

parent bea0b481
...@@ -532,9 +532,7 @@ int zmq::socket_base_t::connect (const char *addr_) ...@@ -532,9 +532,7 @@ int zmq::socket_base_t::connect (const char *addr_)
// PGM does not support subscription forwarding; ask for all data to be // PGM does not support subscription forwarding; ask for all data to be
// sent to this pipe. // sent to this pipe.
bool icanhasall = false; bool icanhasall = protocol == "pgm" || protocol == "epgm";
if (protocol == "pgm" || protocol == "epgm")
icanhasall = true;
if (options.delay_attach_on_connect != 1 || icanhasall) { if (options.delay_attach_on_connect != 1 || icanhasall) {
// Create a bi-directional pipe. // Create a bi-directional pipe.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment