X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=blobdiff_plain;f=src%2Fafb-ws.c;h=6fb9b5f9cecfad48861dec14d1e5145d250374bd;hp=454ddc1a62a8b34861986cb7117713b6b5f9eec9;hb=248f6eafa20476014f4bf12d90b2234c4be7eef2;hpb=0abe8de32bef957b2f72eee7c7eb30c3a9a9efeb diff --git a/src/afb-ws.c b/src/afb-ws.c index 454ddc1a..6fb9b5f9 100644 --- a/src/afb-ws.c +++ b/src/afb-ws.c @@ -132,10 +132,10 @@ static void aws_disconnect(struct afb_ws *ws, int call_on_hangup) static void fdevcb(void *ws, uint32_t revents, struct fdev *fdev) { - if ((revents & EPOLLIN) != 0) - aws_on_readable(ws); - else if ((revents & EPOLLHUP) != 0) + if ((revents & EPOLLHUP) != 0) afb_ws_hangup(ws); + else if ((revents & EPOLLIN) != 0) + aws_on_readable(ws); } /*