Before, these would get a disconnect failure, which makes no sense when the
client is causing the disconnect.
break;
case CONNECTION_DISCONNECT_DEINIT:
e_debug(conn->event, "Connection deinit");
- smtp_client_connection_commands_abort(conn);
smtp_client_connection_close(&conn);
break;
case CONNECTION_DISCONNECT_CONNECT_TIMEOUT:
conn->closed = TRUE;
smtp_client_connection_transactions_abort(conn);
+ smtp_client_connection_commands_abort(conn);
smtp_client_connection_disconnect(conn);
/* could have been created while already disconnected */