Commit 9be0c7e4 authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #402 from hurtonm/master

Small code cleanup
parents bea0b481 92827e45
......@@ -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
// sent to this pipe.
bool icanhasall = false;
if (protocol == "pgm" || protocol == "epgm")
icanhasall = true;
bool icanhasall = protocol == "pgm" || protocol == "epgm";
if (options.delay_attach_on_connect != 1 || icanhasall) {
// 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