From 577d37c5edf7795d2cd3afa6e1e601847d82e392 Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Sat, 17 Nov 2012 12:38:26 +0100 Subject: [PATCH] RECONNECT exit from sync event_loop in case of an error If there is an error during reconnect we should not loop in event_loop as this will cause a deadlock in case there is actually an error like connection drop etc. If this reconnect fails the reconnect routine will retry itself. --- lib/sync.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/sync.c b/lib/sync.c index ef9d290..4a0cce1 100644 --- a/lib/sync.c +++ b/lib/sync.c @@ -54,11 +54,6 @@ event_loop(struct iscsi_context *iscsi, struct iscsi_sync_state *state) continue; } if (iscsi_service(iscsi, pfd.revents) < 0) { - /* if we are reconnecting we just try and try again */ - if (iscsi->is_reconnecting) { - continue; - } - iscsi_set_error(iscsi, "iscsi_service failed with : %s", iscsi_get_error(iscsi));