core: minor fix in calculating timeouts for connection retry

The previous version is not severely wrong, it is just be better
to treat connections whose retry block expires *now* as ready to
reconnect.

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-01-30 15:59:40 +01:00
parent c960d474fb
commit bd7e647914

View file

@ -1267,7 +1267,7 @@ reset_connections_retries (gpointer user_data)
if (con_stamp == 0)
continue;
if (con_stamp < now) {
if (con_stamp <= now) {
nm_settings_connection_reset_autoconnect_retries (connection);
changed = TRUE;
} else if (min_stamp == 0 || min_stamp > con_stamp)