use custom heartbeat interval outright, if set.
This commit is contained in:
parent
b713d48bb9
commit
ae3b94fe92
|
|
@ -536,7 +536,7 @@ protected:
|
||||||
if (interval == 0) return 0;
|
if (interval == 0) return 0;
|
||||||
|
|
||||||
// use the most frequent heartbeat interval (user-specified or rabbit server default).
|
// use the most frequent heartbeat interval (user-specified or rabbit server default).
|
||||||
interval = (_timer_interval > 0 && _timer_interval < interval) ? _timer_interval : interval;
|
interval = (_timer_interval > 0) ? _timer_interval : interval;
|
||||||
|
|
||||||
// set the timer
|
// set the timer
|
||||||
_timer->set(connection, interval);
|
_timer->set(connection, interval);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue