[mod_amqp] Properly parse out heartbeat parameter
This commit is contained in:
parent
77cd699000
commit
7e91927278
|
@ -220,7 +220,7 @@ switch_status_t mod_amqp_connection_create(mod_amqp_connection_t **conn, switch_
|
||||||
if (interval && interval > 0) {
|
if (interval && interval > 0) {
|
||||||
port = interval;
|
port = interval;
|
||||||
}
|
}
|
||||||
} else if (!strncmp(var, "heartbeat", 4)) {
|
} else if (!strncmp(var, "heartbeat", 9)) {
|
||||||
int interval = atoi(val);
|
int interval = atoi(val);
|
||||||
if (interval && interval > 0) {
|
if (interval && interval > 0) {
|
||||||
heartbeat = interval;
|
heartbeat = interval;
|
||||||
|
|
Loading…
Reference in New Issue