remove players who drop from the queue

This commit is contained in:
Branden J Brown 2024-02-03 15:39:59 -06:00
parent 1c0db61385
commit ae1cf18d6d
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ func (s *Server) joinAndServe(p person) {
_, _, err := p.conn.Read(ctx) _, _, err := p.conn.Read(ctx)
if err != nil { if err != nil {
slog.ErrorContext(ctx, "player dropped on hello", "player", p.id, "err", err.Error()) slog.ErrorContext(ctx, "player dropped on hello", "player", p.id, "err", err.Error())
stop()
} }
}() }()
id, chall, deal := s.l.Queue(ctx, p.id) id, chall, deal := s.l.Queue(ctx, p.id)