mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 20:14:17 +01:00
room/room_member: Silence -Wswitch warnings
This commit is contained in:
parent
dc5d7a802f
commit
94999bde5b
@ -177,6 +177,9 @@ void Room::RoomImpl::ServerLoop() {
|
|||||||
case ENET_EVENT_TYPE_DISCONNECT:
|
case ENET_EVENT_TYPE_DISCONNECT:
|
||||||
HandleClientDisconnection(event.peer);
|
HandleClientDisconnection(event.peer);
|
||||||
break;
|
break;
|
||||||
|
case ENET_EVENT_TYPE_NONE:
|
||||||
|
case ENET_EVENT_TYPE_CONNECT:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -308,6 +308,9 @@ void RoomMember::RoomMemberImpl::Disconnect() {
|
|||||||
case ENET_EVENT_TYPE_DISCONNECT:
|
case ENET_EVENT_TYPE_DISCONNECT:
|
||||||
server = nullptr;
|
server = nullptr;
|
||||||
return;
|
return;
|
||||||
|
case ENET_EVENT_TYPE_NONE:
|
||||||
|
case ENET_EVENT_TYPE_CONNECT:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// didn't disconnect gracefully force disconnect
|
// didn't disconnect gracefully force disconnect
|
||||||
|
Loading…
Reference in New Issue
Block a user