fix type linting issues for client
in Control.is_readable
This commit is contained in:
parent
e58e9a2058
commit
aa3906dfa3
1 changed files with 2 additions and 2 deletions
|
@ -63,8 +63,8 @@ class Control(PollSource.PollSource):
|
|||
|
||||
def is_readable(self, fileno: int):
|
||||
if fileno == self._socket.fileno():
|
||||
client, address = self._socket.accept()
|
||||
self._clients[client.fileno()] = ControlClient(client)
|
||||
client_s, address = self._socket.accept()
|
||||
self._clients[client_s.fileno()] = ControlClient(client_s)
|
||||
self._bot.log.debug("New control socket connected")
|
||||
elif fileno in self._clients:
|
||||
client = self._clients[fileno]
|
||||
|
|
Loading…
Reference in a new issue