properly tune heartbeat delay

tuneOk was only properly tuning the heartbeat delay value for values
larger than the default delay sent by the server. This changes that
behavior to send back the requested heartbeat delay if one was provided
This commit is contained in:
Matt Broadstone 2015-02-27 08:16:22 -05:00
parent 07ad9d8e4f
commit 4379e991c6
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ void QAmqpClientPrivate::tune(const QAmqpMethodFrame &frame)
if (!frameMax)
frameMax = frame_max;
channelMax = !channelMax ? channel_max : qMax(channel_max, channelMax);
heartbeatDelay = !heartbeatDelay ? heartbeat_delay: qMax(heartbeat_delay, heartbeatDelay);
heartbeatDelay = !heartbeatDelay ? heartbeat_delay: heartbeatDelay;
qAmqpDebug(">> channel_max: %d", channelMax);
qAmqpDebug(">> frame_max: %d", frameMax);