remove players who drop from the queue
This commit is contained in:
parent
1c0db61385
commit
ae1cf18d6d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user