Skip to content

remove_client called twice on admin kick — duplicate broadcasts #8

@davidnoyes

Description

@davidnoyes

Bug Description

In prompt_admin_to_boot and kick_selected_user, after sending the kick packet, remove_client(target_client) is called directly. But the handle_client thread for that client is still running — when it sees the socket close, recv_packet returns None, breaks the loop, and calls remove_client again at line 501. This produces duplicate disconnect broadcasts and log entries.

File & Lines

server code.py — lines 541–543, 819–821, 501

Severity

Functional bug — duplicate disconnect messages sent to all clients.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions