[mod_commands] Fix leaking session readlock in uuid_capture_text

This commit is contained in:
Andrey Volk 2023-04-14 14:48:41 +03:00
parent eec1fd737c
commit 7f3a833466
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}