Fix wart in tcp transport

This commit is contained in:
Daniel A. Wozniak 2023-07-04 15:08:57 -07:00 committed by Gareth J. Greenaway
parent 8890635449
commit e79e3899e4

View file

@ -1614,12 +1614,12 @@ class _TCPPubServerPublisher:
"""
Connect to a running IPCServer
"""
if isinstance(self.path, int):
sock_type = socket.AF_INET
sock_addr = (self.host, self.port)
else:
if self.path:
sock_type = socket.AF_UNIX
sock_addr = self.path
else:
sock_type = socket.AF_INET
sock_addr = (self.host, self.port)
self.stream = None
if timeout is not None: