iscsi-command: do not fail commands while reconnect is pending

Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
Peter Lieven
2014-06-16 18:18:19 +02:00
parent f14f3ef6fe
commit e6894fd73a

View File

@@ -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;