socket: do not show misleading disconnect message if we are not actually logged in

Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
Peter Lieven
2015-04-16 11:10:32 +02:00
parent f3a3854718
commit 812d55d343

View File

@@ -377,7 +377,7 @@ iscsi_disconnect(struct iscsi_context *iscsi)
close(iscsi->fd);
if (iscsi->connected_portal[0]) {
if (!iscsi->pending_reconnect && iscsi->connected_portal[0]) {
ISCSI_LOG(iscsi, 2, "disconnected from portal %s",iscsi->connected_portal);
}