diff options
author | Thomas Haller <thaller@redhat.com> | 2019-12-16 18:53:04 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-12-16 18:53:23 +0100 |
commit | 1f9dabcb735b3b9f0511cf72d1ed23e540ca49ee (patch) | |
tree | 15b3ee517346a578a42000efec01a9685fdd54f7 | |
parent | 85042e72444c639fb7d43eb3bae138ec34773748 (diff) | |
download | NetworkManager-1f9dabcb735b3b9f0511cf72d1ed23e540ca49ee.tar.gz |
libnm/secret-agent: fix reseting timeout when registration completes
Fixes: f0d3243f2ba9 ('libnm/secret-agent: fix race registering secret agent')
-rw-r--r-- | libnm/nm-secret-agent-old.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libnm/nm-secret-agent-old.c b/libnm/nm-secret-agent-old.c index 49d41df1ae..1203fb11bc 100644 --- a/libnm/nm-secret-agent-old.c +++ b/libnm/nm-secret-agent-old.c @@ -702,8 +702,7 @@ _register_call_cb (GObject *proxy, } done: - priv->registering_timeout_msec = nm_utils_get_monotonic_timestamp_msec () + REGISTER_RETRY_TIMEOUT_MSEC; - priv->registering_try_count = 0; + priv->registering_timeout_msec = 0; if (error) { _LOGT ("register: registration failed with error \"%s\"", error->message); |