* alternatively would be to track whether the
* immediate has already been scheduled. For
* now, avoid that complexity here.
- *
- * reg->ev and ctx->event_ctx can't
- * be wrapper tevent_context pointers
- * so we don't need to use
- * tevent_context_same_loop().
*/
if (reg->ev == ctx->event_ctx) {
sec_init();
- if (tevent_context_is_wrapper(ev)) {
- /* This is really a programmer error! */
- DBG_ERR("Should not be used with a wrapper tevent context\n");
- return NT_STATUS_INVALID_PARAMETER;
- }
-
lck_path = lock_path(talloc_tos(), "msg.lock");
if (lck_path == NULL) {
return NT_STATUS_NO_MEMORY;
state->filter = filter;
state->private_data = private_data;
- if (tevent_context_is_wrapper(ev)) {
- /* This is really a programmer error! */
- DBG_ERR("Wrapper tevent context doesn't use main context.\n");
- tevent_req_error(req, EINVAL);
- return tevent_req_post(req, ev);
- }
-
/*
* We have to defer the callback here, as we might be called from
* within a different tevent_context than state->ev
bool consumed;
size_t i;
- /*
- * ev and msg_ctx->event_ctx can't be wrapper tevent_context pointers
- * so we don't need to use tevent_context_same_loop().
- */
-
if (ev == msg_ctx->event_ctx) {
consumed = messaging_dispatch_classic(msg_ctx, rec);
if (consumed) {