0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-03 03:45:43 +08:00

Merge pull request #402 from hurtonm/master

Small code cleanup
This commit is contained in:
Pieter Hintjens 2012-07-17 23:59:59 -07:00
commit 9be0c7e4b5

View File

@ -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.