Skip to content

Commit

Permalink
Merge pull request #2038 from signalwire/capture
Browse files Browse the repository at this point in the history
[mod_commands] Fix leaking session readlock in uuid_capture_text
  • Loading branch information
andywolk authored Apr 14, 2023
2 parents eec1fd7 + 7f3a833 commit b1bf3b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mod/applications/mod_commands/mod_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b1bf3b0

Please sign in to comment.