Commit ab7f8d95 authored by Julien Muchembled's avatar Julien Muchembled

registry: fix stuck requests leading to "Too many open files" errors

parent 9c66f02e
......@@ -209,7 +209,8 @@ class RegistryServer(object):
def getCert(self, client_prefix):
assert self.lock.locked()
return self.db.execute("SELECT cert FROM cert WHERE prefix = ?",
return self.db.execute("SELECT cert FROM cert"
" WHERE prefix=? AND cert IS NOT NULL",
(client_prefix,)).next()[0]
@rpc
......
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