Skip to content

Commit

Permalink
director: Fix "sending handshake timed out" error to be actually logged
Browse files Browse the repository at this point in the history
io was never NULL here, so it was never logged.
  • Loading branch information
sirainen authored and villesavolainen committed Jun 19, 2017
1 parent 4cbe979 commit 2d621f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/director/director-connection.c
Expand Up @@ -166,12 +166,12 @@ director_connection_init_timeout(struct director_connection *conn)
if (!conn->connected) {
i_error("director(%s): Connect timed out (%u secs)",
conn->name, secs);
} else if (conn->io == NULL) {
i_error("director(%s): Sending handshake (%u secs)",
conn->name, secs);
} else if (!conn->me_received) {
i_error("director(%s): Handshaking ME timed out (%u secs)",
conn->name, secs);
} else if (!conn->in) {
i_error("director(%s): Sending handshake timed out (%u secs)",
conn->name, secs);
} else {
i_error("director(%s): Handshaking DONE timed out (%u secs)",
conn->name, secs);
Expand Down

0 comments on commit 2d621f5

Please sign in to comment.