-- && !write_pending(channel)) {
-- TRACE(("sending close, readfd is closed"))
-- send_msg_channel_close(channel);
-- }
- }
-
- /* Check whether a deferred (EINPROGRESS) connect() was successful, and
++ && !ERRFD_IS_WRITE(channel)
+ && !write_pending(channel)) {
+ TRACE(("sending close, readfd is closed"))
+ send_msg_channel_close(channel);