better comments
This commit is contained in:
parent
c0aa999cbd
commit
02f7c1a86b
1 changed files with 2 additions and 2 deletions
|
@ -367,10 +367,10 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
|
|||
a_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
|
||||
if a_socket.connect_ex(location) == 0:
|
||||
await self.bot.wavelink.initiate_node(**nodeValues[n]) # Port is open, connecting...
|
||||
await self.bot.wavelink.initiate_node(**nodeValues[n]) # Port isn't open -> a service is behind, connecting...
|
||||
n += 1
|
||||
else:
|
||||
sleep(1) # Port is not open, retrying in 1 second...
|
||||
sleep(1) # Port is open -> no service behind, retrying in 1 second...
|
||||
|
||||
@wavelink.WavelinkMixin.listener()
|
||||
async def on_node_ready(self, node: wavelink.Node):
|
||||
|
|
Reference in a new issue