git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1557 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-06-07 14:53:13 +00:00
parent 1c0caef630
commit 8b7f997c3f
1 changed files with 6 additions and 0 deletions

View File

@ -1235,6 +1235,12 @@ static void set_profile_val(struct mdl_profile *profile, char *var, char *val)
static switch_status_t dl_logout(char *profile_name, switch_stream_handle_t *stream) static switch_status_t dl_logout(char *profile_name, switch_stream_handle_t *stream)
{ {
struct mdl_profile *profile; struct mdl_profile *profile;
if (!profile_name) {
stream->write_function(stream, "NO PROFILE NAME SPECIFIED\n");
return SWITCH_STATUS_SUCCESS;
}
if ((profile = switch_core_hash_find(globals.profile_hash, profile_name))) { if ((profile = switch_core_hash_find(globals.profile_hash, profile_name))) {
ldl_handle_stop(profile->handle); ldl_handle_stop(profile->handle);
stream->write_function(stream, "OK\n"); stream->write_function(stream, "OK\n");