ERROR("request replied, subscription impossible");
errno = EINVAL;
} else {
- if (xreq->listener)
- return afb_evt_event_x2_add_watch(xreq->listener, event);
if (xreq->queryitf->subscribe)
return xreq->queryitf->subscribe(xreq, event);
ERROR("no event listener, subscription impossible");
ERROR("request replied, unsubscription impossible");
errno = EINVAL;
} else {
- if (xreq->listener)
- return afb_evt_event_x2_remove_watch(xreq->listener, event);
if (xreq->queryitf->unsubscribe)
return xreq->queryitf->unsubscribe(xreq, event);
ERROR("no event listener, unsubscription impossible");
}
}
- if ((sessionflags & AFB_SESSION_RENEW_X1) != 0) {
- afb_context_refresh(&xreq->context);
- }
if ((sessionflags & AFB_SESSION_CLOSE_X1) != 0) {
afb_context_change_loa(&xreq->context, 0);
afb_context_close(&xreq->context);
return -1;
}
- if ((sessionflags & AFB_SESSION_REFRESH_X2) != 0) {
- afb_context_refresh(&xreq->context);
- }
if ((sessionflags & AFB_SESSION_CLOSE_X2) != 0) {
afb_context_close(&xreq->context);
}