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:
@@ -791,7 +791,9 @@ iscsi_service(struct iscsi_context *iscsi, int revents)
|
|||||||
if (time(NULL) > iscsi->next_reconnect) {
|
if (time(NULL) > iscsi->next_reconnect) {
|
||||||
return iscsi_reconnect(iscsi);
|
return iscsi_reconnect(iscsi);
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
if (iscsi->is_reconnecting) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user