Commit 1fb40486 authored by Marek Vavrusa's avatar Marek Vavrusa

pydnstest: fixed warning on cleanup

parent 6f1ba7a2
......@@ -103,7 +103,8 @@ class TestServer:
def stop(self):
""" Stop socket server operation. """
self.active = False
self.thread.join()
if self.thread:
self.thread.join()
for conn in self.connections:
conn.close()
for srv_sock in self.srv_socks:
......
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