From 7b31e015593d74ad071adf0fea77374b83f05907 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sat, 8 Nov 2025 19:13:20 -0500 Subject: [PATCH] chore: Remove unreachable cleanup Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- contrib/ProtobufLogger.py | 2 -- regression-tests.auth-py/test_Carbon.py | 1 - regression-tests.recursor-dnssec/recursortests.py | 1 - regression-tests.recursor-dnssec/test_Carbon.py | 1 - 4 files changed, 5 deletions(-) diff --git a/contrib/ProtobufLogger.py b/contrib/ProtobufLogger.py index 1fea0a1cf3..7eab3bce0d 100644 --- a/contrib/ProtobufLogger.py +++ b/contrib/ProtobufLogger.py @@ -427,8 +427,6 @@ class PDNSPBListener(object): thread.daemon = True thread.start() - self._sock.close() - if __name__ == "__main__": oturl = None diff --git a/regression-tests.auth-py/test_Carbon.py b/regression-tests.auth-py/test_Carbon.py index 41b53cf67f..18d6e23f7c 100644 --- a/regression-tests.auth-py/test_Carbon.py +++ b/regression-tests.auth-py/test_Carbon.py @@ -58,7 +58,6 @@ class TestCarbon(AuthTest): cls._carbonCounters[threading.currentThread().name] = 1 conn.close() - sock.close() @classmethod def startResponders(cls): diff --git a/regression-tests.recursor-dnssec/recursortests.py b/regression-tests.recursor-dnssec/recursortests.py index df4c6b222d..18d897fc98 100644 --- a/regression-tests.recursor-dnssec/recursortests.py +++ b/regression-tests.recursor-dnssec/recursortests.py @@ -33,7 +33,6 @@ def have_ipv6(): return True except: return False - return False class RecursorTest(AssertEqualDNSMessageMixin, unittest.TestCase): diff --git a/regression-tests.recursor-dnssec/test_Carbon.py b/regression-tests.recursor-dnssec/test_Carbon.py index 743145e290..37bb3d4726 100644 --- a/regression-tests.recursor-dnssec/test_Carbon.py +++ b/regression-tests.recursor-dnssec/test_Carbon.py @@ -58,7 +58,6 @@ class CarbonTest(RecursorTest): cls._carbonCounters[threading.current_thread().name] = 1 conn.close() - sock.close() @classmethod def startResponders(cls): -- 2.47.3