From 41fbb451a1273460e5d87f6d24d0d2444959e68a Mon Sep 17 00:00:00 2001 From: Tamas Cseke Date: Wed, 26 Feb 2014 13:42:20 +0100 Subject: [PATCH] FS-5834 --resolve --- src/mod/event_handlers/mod_erlang_event/handle_msg.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mod/event_handlers/mod_erlang_event/handle_msg.c b/src/mod/event_handlers/mod_erlang_event/handle_msg.c index ae6da81cae..dfd2864eb3 100644 --- a/src/mod/event_handlers/mod_erlang_event/handle_msg.c +++ b/src/mod/event_handlers/mod_erlang_event/handle_msg.c @@ -1157,12 +1157,12 @@ static switch_status_t handle_ref_tuple(listener_t *listener, erlang_msg * msg, switch_thread_rwlock_unlock(listener->session_rwlock); if (found) { - ei_x_encode_atom(rbuf, "ok"); - } else { - ei_x_encode_tuple_header(rbuf, 2); - ei_x_encode_atom(rbuf, "error"); - ei_x_encode_atom(rbuf, "notfound"); - } + return SWITCH_STATUS_FALSE; + } + + ei_x_encode_tuple_header(rbuf, 2); + ei_x_encode_atom(rbuf, "error"); + ei_x_encode_atom(rbuf, "notfound"); return SWITCH_STATUS_SUCCESS; }