1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-18 09:32:34 +00:00

Merge pull request from signalwire/capture

[mod_commands] Fix leaking session readlock in uuid_capture_text
This commit is contained in:
Andrey Volk 2023-04-14 16:51:13 +03:00 committed by GitHub
commit b1bf3b0574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3225,6 +3225,7 @@ SWITCH_STANDARD_API(uuid_capture_text)
} else {
if ((tsession = switch_core_session_locate(uuid))) {
switch_ivr_capture_text(tsession, switch_true(onoff));
switch_core_session_rwunlock(tsession);
} else {
stream->write_function(stream, "-ERR No such channel %s!\n", uuid);
}