ring group release database handle before bridge

This commit is contained in:
agree 2021-02-02 12:58:23 -05:00 committed by GitHub
parent 43e2bfc422
commit a39a65d21e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -882,6 +882,9 @@
end
end
--release dbh before bridge
dbh:release();
--session execute
if (session:ready()) then
--set the variables
@ -1006,6 +1009,7 @@
session:execute(ring_group_timeout_app, ring_group_timeout_data);
end
else
dbh = Database.new('system');
local sql = "SELECT ring_group_timeout_app, ring_group_timeout_data FROM v_ring_groups ";
sql = sql .. "where ring_group_uuid = :ring_group_uuid";
local params = {ring_group_uuid = ring_group_uuid};