fix: improve minigame reconnect flow
This commit is contained in:
@@ -84,6 +84,14 @@ namespace XWorld.Server.Host
|
||||
entry.Room.Deliver(playerId, message);
|
||||
}
|
||||
|
||||
public bool EndRoom(string roomId)
|
||||
{
|
||||
if (!_rooms.TryGetValue(roomId, out var entry)) return false;
|
||||
entry.Room.End();
|
||||
ReleaseRoom(roomId);
|
||||
return true;
|
||||
}
|
||||
|
||||
private void ReleaseRoom(string roomId)
|
||||
{
|
||||
if (!_rooms.TryGetValue(roomId, out var entry)) return;
|
||||
|
||||
Reference in New Issue
Block a user