mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
zeromq: only check for handshake if we are in a CurveZMQ session
This commit is contained in:
parent
48b3898f23
commit
eef7764b8a
1 changed files with 6 additions and 2 deletions
|
@ -334,8 +334,12 @@ int zeromq_start(struct node *n)
|
|||
}
|
||||
|
||||
#ifdef ZMQ_BUILD_DRAFT_API
|
||||
ret = get_monitor_event(z->subscriber.mon_socket, NULL, NULL);
|
||||
return ret == ZMQ_EVENT_HANDSHAKE_SUCCEED;
|
||||
if (z->curve.enabled) {
|
||||
ret = get_monitor_event(z->subscriber.mon_socket, NULL, NULL);
|
||||
return ret == ZMQ_EVENT_HANDSHAKE_SUCCEED;
|
||||
}
|
||||
else
|
||||
return 0; /* The handshake events are only emitted for CurveZMQ sessions. */
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue