Commit Graph

2 Commits

Author SHA1 Message Date
Jannis Mattheis
a0f3c37498 fix: race condition
In client.go

    if room, ok := message.(outgoing.Room); ok {
            c.info.RoomID = room.ID
    }

this part isn't thread safe. It could happen that user disconnected but
wasn't removed from a room, because the disconnecting go routine
couldn't see the roomID yet.
2024-10-11 15:11:07 +02:00
Jannis Mattheis
da3f5b1692 fix: goroutine leak 2024-09-27 16:20:15 +02:00