server: todos and cleanup

This commit is contained in:
Artem30801
2020-10-06 00:42:44 +03:00
parent 8ed0574aab
commit 41bf1e3c5d
2 changed files with 4 additions and 7 deletions

View File

@@ -254,7 +254,7 @@ class MainWindow(QtWidgets.QMainWindow):
return list(self.iterate_selected(lambda copter: copter.client.send_message(
command, command_args, command_kwargs)))
def new_client_connected(self, client: Client):
def new_client_connected(self, client: Client): # TODO merge with client_connection_changed
if self.model.get_row_by_attr('client', client) is not None:
logging.warning("Client is already in table! {}".format(client))
return