iscsi_service: dont return if a reconnect is pending but not yet reconnecting

Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
Peter Lieven
2015-04-02 08:31:53 +02:00
parent 8398059635
commit b7cb8fbf5a

View File

@@ -791,7 +791,9 @@ iscsi_service(struct iscsi_context *iscsi, int revents)
if (time(NULL) > iscsi->next_reconnect) {
return iscsi_reconnect(iscsi);
} else {
return 0;
if (iscsi->is_reconnecting) {
return 0;
}
}
}