diff options
| author | 2019-10-14 18:17:15 +0100 | |
|---|---|---|
| committer | 2019-10-14 18:17:15 +0100 | |
| commit | aa3906dfa349f56bb23ce6fa1f2a82cc44a1247d (patch) | |
| tree | e64d03acaf905df6c7fb321942de6736d5c67560 /src/Control.py | |
| parent | add .back suffix to database backups (diff) | |
| signature | ||
fix type linting issues for `client` in Control.is_readable
Diffstat (limited to 'src/Control.py')
| -rw-r--r-- | src/Control.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Control.py b/src/Control.py index bdd36ab0..b57c9048 100644 --- a/src/Control.py +++ b/src/Control.py @@ -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] |
