remove unnecessary assignment

This commit is contained in:
onyx-and-iris 2026-03-03 20:03:09 +00:00
parent 3d01321be3
commit 3cde874a3c

View File

@ -140,10 +140,11 @@ class VbanCmd(abc.ABC):
def _ping(self): def _ping(self):
"""Initiates the PING/PONG handshake with the VBAN server.""" """Initiates the PING/PONG handshake with the VBAN server."""
ping_packet = VbanPing0Payload.create_packet(self._get_next_framecounter())
try: try:
self.sock.sendto(ping_packet, (socket.gethostbyname(self.host), self.port)) self.sock.sendto(
VbanPing0Payload.create_packet(self._get_next_framecounter()),
(socket.gethostbyname(self.host), self.port),
)
self.logger.debug(f'PING sent to {self.host}:{self.port}') self.logger.debug(f'PING sent to {self.host}:{self.port}')
except socket.gaierror as e: except socket.gaierror as e: