diff options
Diffstat (limited to 'ofproto')
-rw-r--r-- | ofproto/fail-open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/fail-open.c b/ofproto/fail-open.c index 5b105ba88..34b398eca 100644 --- a/ofproto/fail-open.c +++ b/ofproto/fail-open.c @@ -180,7 +180,7 @@ fail_open_run(struct fail_open *fo) int disconn_secs = connmgr_failure_duration(fo->connmgr); /* Enter fail-open mode if 'fo' is not in it but should be. */ - if (disconn_secs >= trigger_duration(fo)) { + if (disconn_secs > 0 && disconn_secs >= trigger_duration(fo)) { if (!fail_open_is_active(fo)) { VLOG_WARN("Could not connect to controller (or switch failed " "controller's post-connection admission control " |