X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-xreq.c;h=854274194717e8ce0f623dac54e43b171c611b8b;hb=refs%2Fchanges%2F50%2F23150%2F1;hp=790a384fdaa905bb080b04f90ef55ed424364802;hpb=bc38af3e79fbd6256c209a0673601832429e7418;p=src%2Fapp-framework-binder.git diff --git a/src/afb-xreq.c b/src/afb-xreq.c index 790a384f..85427419 100644 --- a/src/afb-xreq.c +++ b/src/afb-xreq.c @@ -206,8 +206,6 @@ int afb_xreq_subscribe(struct afb_xreq *xreq, struct afb_event_x2 *event) 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"); @@ -233,8 +231,6 @@ int afb_xreq_unsubscribe(struct afb_xreq *xreq, struct afb_event_x2 *event) 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"); @@ -764,9 +760,6 @@ static int xreq_session_check_apply_v1(struct afb_xreq *xreq, int sessionflags) } } - 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); @@ -802,9 +795,6 @@ static int xreq_session_check_apply_v2(struct afb_xreq *xreq, uint32_t sessionfl 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); }