mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 14:45:38 +02:00
Problem: some conditional compile was not applied
Conditinoal compile for OPENPGM and NORM is mixed. Also found few codes which needs conditional compile but not applied. Solution: Apply conditional compile preprocessors
This commit is contained in:
@@ -534,10 +534,14 @@ void zmq::session_base_t::reconnect ()
|
||||
{
|
||||
// For delayed connect situations, terminate the pipe
|
||||
// and reestablish later on
|
||||
if (_pipe && options.immediate == 1
|
||||
if (_pipe && options.immediate == 1
|
||||
#ifdef ZMQ_HAVE_OPENPGM
|
||||
&& _addr->protocol != protocol_name::pgm
|
||||
&& _addr->protocol != protocol_name::epgm
|
||||
#endif
|
||||
#ifdef ZMQ_HAVE_NORM
|
||||
&& _addr->protocol != protocol_name::norm
|
||||
#endif
|
||||
&& _addr->protocol != protocol_name::udp) {
|
||||
_pipe->hiccup ();
|
||||
_pipe->terminate (false);
|
||||
|
Reference in New Issue
Block a user