From 812d55d343f7d910e8933b7489e21d4fbef78afd Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Thu, 16 Apr 2015 11:10:32 +0200 Subject: [PATCH] socket: do not show misleading disconnect message if we are not actually logged in Signed-off-by: Peter Lieven --- lib/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/socket.c b/lib/socket.c index 5e76055..047a791 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -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); }