From e6894fd73ad003e739f28d2757bbefd911b7481e Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Mon, 16 Jun 2014 18:18:19 +0200 Subject: [PATCH] iscsi-command: do not fail commands while reconnect is pending Signed-off-by: Peter Lieven --- lib/iscsi-command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iscsi-command.c b/lib/iscsi-command.c index 95187a1..e4f6e8e 100644 --- a/lib/iscsi-command.c +++ b/lib/iscsi-command.c @@ -208,7 +208,7 @@ iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun, return -1; } - if (iscsi->is_loggedin == 0) { + if (iscsi->is_loggedin == 0 && !iscsi->pending_reconnect) { iscsi_set_error(iscsi, "Trying to send command while " "not logged in."); return -1;