room/room_member: Silence -Wswitch warnings

This commit is contained in:
Lioncash 2017-11-28 21:09:53 -05:00
parent dc5d7a802f
commit 94999bde5b
2 changed files with 6 additions and 0 deletions

View file

@ -177,6 +177,9 @@ void Room::RoomImpl::ServerLoop() {
case ENET_EVENT_TYPE_DISCONNECT:
HandleClientDisconnection(event.peer);
break;
case ENET_EVENT_TYPE_NONE:
case ENET_EVENT_TYPE_CONNECT:
break;
}
}
}

View file

@ -308,6 +308,9 @@ void RoomMember::RoomMemberImpl::Disconnect() {
case ENET_EVENT_TYPE_DISCONNECT:
server = nullptr;
return;
case ENET_EVENT_TYPE_NONE:
case ENET_EVENT_TYPE_CONNECT:
break;
}
}
// didn't disconnect gracefully force disconnect