Commit 4701e4b0 authored by Alexandre's avatar Alexandre
Browse files

Fix closing handles

parent 06ef4950
......@@ -569,6 +569,8 @@ class ConnectionDoH(Connection):
handle.request.check_response()
if not silent:
print("Return code %s:\n%s\n" % (handle.request.rcode, handle.request.response))
handle.close()
self.multi.remove_handle(handle)
def read_results(self):
for handle in self.all_handles:
......
Supports Markdown
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