Skip to content

Delete closed room#33

Open
jadeydi wants to merge 2 commits intomasterfrom
feature/closed-room
Open

Delete closed room#33
jadeydi wants to merge 2 commits intomasterfrom
feature/closed-room

Conversation

@jadeydi
Copy link
Copy Markdown
Member

@jadeydi jadeydi commented Nov 26, 2022

No description provided.

Comment thread engine/engine.go
engine.State.ActiveRooms += 1
} else {
engine.State.ClosedRooms += 1
delete(engine.rooms.m, rid)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In line 52, engine.rooms.RLock() should be changed to engine.rooms.Lock(). Line 80 also needs change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants