mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
[mod_commands] Fix leaking session readlock in uuid_capture_text
This commit is contained in:
parent
eec1fd737c
commit
7f3a833466
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user