mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-03-12 04:59:09 +00:00
remove unnecessary assignment
This commit is contained in:
parent
3d01321be3
commit
3cde874a3c
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user