es_chan_active
if (es_chan_active(es) != 0)
if (es->polling == 0 || es_chan_active(es) == 0) {
if (es_chan_active(es) == 0) {