diff --git a/swoole_client.cc b/swoole_client.cc index b7f633f5b4b..f95ce8b4c85 100644 --- a/swoole_client.cc +++ b/swoole_client.cc @@ -1572,7 +1572,7 @@ PHP_FUNCTION(swoole_client_select) { index = client_poll_add(w_array, index, fds, maxevents, POLLOUT); } - if (e_array != NULL && php_swoole_array_length(w_array) > 0) + if (e_array != NULL && php_swoole_array_length(e_array) > 0) { index = client_poll_add(e_array, index, fds, maxevents, POLLHUP); }