Fix crash when receiving lobby message

This commit is contained in:
Guangcong Luo 2013-05-02 20:18:10 -07:00
parent 082af725b3
commit 74553ab374

View File

@ -360,7 +360,7 @@
}
if (data.room) {
if (data.room === 'lobby') {
self.addRoom(roomid, roomType);
self.addRoom('lobby');
} else {
self.joinRoom(data.room, data.roomType);
}