* must set the flag WAKERESWR. This flag required the task
* wake up if any activity is detected on the response buffer.
*/
- if (chn->chn == &chn->s->res)
+ if (chn->chn->flags & CF_ISRESP)
HLUA_SET_WAKERESWR(hlua);
else
HLUA_SET_WAKEREQWR(hlua);
* must set the flag WAKERESWR. This flag required the task
* wake up if any activity is detected on the response buffer.
*/
- if (chn->chn == &chn->s->res)
+ if (chn->chn->flags & CF_ISRESP)
HLUA_SET_WAKERESWR(hlua);
else
HLUA_SET_WAKEREQWR(hlua);