Merge pull request #61 from cdosoftei/amqp-heartbeat

[mod_amqp] Properly parse out heartbeat parameter
This commit is contained in:
Andrey Volk 2019-10-15 20:44:53 +04:00 committed by GitHub
commit 7fdf8584e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ switch_status_t mod_amqp_connection_create(mod_amqp_connection_t **conn, switch_
if (interval && interval > 0) {
port = interval;
}
} else if (!strncmp(var, "heartbeat", 4)) {
} else if (!strncmp(var, "heartbeat", 9)) {
int interval = atoi(val);
if (interval && interval > 0) {
heartbeat = interval;