fix type linting issues for client in Control.is_readable

This commit is contained in:
jesopo 2019-10-14 18:17:15 +01:00
parent e58e9a2058
commit aa3906dfa3

View file

@ -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]