MINOR: connection: remove the double test on xprt_done_cb()
authorWilly Tarreau <w@1wt.eu>
Fri, 27 Dec 2019 13:49:19 +0000 (14:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 27 Dec 2019 15:38:47 +0000 (16:38 +0100)
commitcbcf77edb74ec52fde20d026c57429dc4c041fec
tree4ea6d70f6af5a8fb4509d543f37c61feb79a8eb6
parentb2a7ab08a8770b0991f2181e0b97d96ff131af05
MINOR: connection: remove the double test on xprt_done_cb()

The conn_fd_handler used to have one possible call to this function to
notify about end of handshakes, and another one to notify about connection
setup or error. But given that we're now only performing wakeup calls
after connection validation, we don't need to keep two places to run
this test since the conditions do not change in between.

This patch merges the two tests into a single one and moves the
CO_FL_CONNECTED test appropriately as well so that it's called even
on the error path if needed.
src/connection.c