diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index b19b6ed46..2d922a996 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -1165,18 +1165,13 @@ spdk_iscsi_conn_execute(struct spdk_iscsi_conn *conn) return -1; } - if (conn->state == ISCSI_CONN_STATE_EXITING) { - goto conn_exit; - } - - spdk_iscsi_conn_handle_queued_datain_tasks(conn); - -conn_exit: if (conn->state == ISCSI_CONN_STATE_EXITING) { spdk_iscsi_conn_destruct(conn); return -1; } + spdk_iscsi_conn_handle_queued_datain_tasks(conn); + return 0; }