Commit 6569cf1e authored by Julien Muchembled's avatar Julien Muchembled

rina: fix a case where enrollment was not retried

parent 128edb83
......@@ -205,7 +205,8 @@ class Shim(object):
# so don't block for too long.
if now + 1 < time.time():
return
elif asking_info.get(prefix, 0) < now and tm.askInfo(prefix):
continue
if asking_info.get(prefix, 0) < now and tm.askInfo(prefix):
self._enroll(tm, prefix)
asking_info[prefix] = now + 60
......@@ -216,6 +217,7 @@ class Shim(object):
self._enroll(tm, prefix)
else:
self._asking_info[prefix] = float('inf')
self._enabled.pop(prefix, None)
@staticmethod
def _resolve(sock):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment