Add test for DeleteSession() and fix potential bug in roomlist CheckTag()

This commit is contained in:
Tulir Asokan
2018-05-11 07:53:17 +03:00
parent 1dd036691e
commit d53aa02c0f
2 changed files with 26 additions and 1 deletions

View File

@ -274,7 +274,7 @@ func (list *RoomList) CheckTag(tag string) {
tagRoomList, ok := list.items[tag]
if ok && tagRoomList.IsEmpty() {
delete(list.items, tag)
//delete(list.items, tag)
ok = false
}