}
switch_thread_rwlock_unlock(session->event_rwlock);
+ switch_thread_rwlock_unlock(session->rwlock);
ei_x_encode_atom(rbuf, "ok");
} else {
}
}
switch_thread_rwlock_unlock(session->event_rwlock);
+ switch_thread_rwlock_unlock(session->rwlock);
ei_x_encode_atom(rbuf, "ok");
} else { /* no session for this pid */
session->event_hash = event_hash;
switch_thread_rwlock_unlock(session->event_rwlock);
+ switch_thread_rwlock_unlock(session->rwlock);
+
/* TODO - we should flush any non-matching events from the queue */
ei_x_encode_atom(rbuf, "ok");
} else { /* no session for this pid */
switch_core_hash_delete_multi(session->event_hash, NULL, NULL);
switch_thread_rwlock_unlock(session->event_rwlock);
+ switch_thread_rwlock_unlock(session->rwlock);
+
ei_x_encode_atom(rbuf, "ok");
} else {
ei_x_encode_tuple_header(rbuf, 2);