use custom heartbeat interval outright, if set.

This commit is contained in:
Steven Geddis 2018-02-01 13:05:41 +01:00
parent b713d48bb9
commit ae3b94fe92
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ protected:
if (interval == 0) return 0;
// 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
_timer->set(connection, interval);