mirror of
https://github.com/solero/houdini.git
synced 2024-12-04 12:43:40 +00:00
Fix igloo owner rejoining its open igloo (#102)
This commit is contained in:
parent
e23a7ecf2e
commit
95a7b25233
@ -147,7 +147,7 @@ async def create_temporary_room(p, penguin_id):
|
|||||||
igloo = None
|
igloo = None
|
||||||
if penguin_id in p.server.penguins_by_id:
|
if penguin_id in p.server.penguins_by_id:
|
||||||
igloo_owner = p.server.penguins_by_id[penguin_id]
|
igloo_owner = p.server.penguins_by_id[penguin_id]
|
||||||
igloo = igloo_owner.igloo_rooms[igloo_owner.igloo]
|
igloo = p.server.igloos_by_penguin_id.get(igloo_owner.id, igloo_owner.igloo_rooms[igloo_owner.igloo])
|
||||||
p.server.igloos_by_penguin_id[penguin_id] = igloo
|
p.server.igloos_by_penguin_id[penguin_id] = igloo
|
||||||
elif penguin_id not in p.server.igloos_by_penguin_id:
|
elif penguin_id not in p.server.igloos_by_penguin_id:
|
||||||
igloo = await PenguinIglooRoom.load(parent=Penguin.on(Penguin.igloo == PenguinIglooRoom.id)) \
|
igloo = await PenguinIglooRoom.load(parent=Penguin.on(Penguin.igloo == PenguinIglooRoom.id)) \
|
||||||
|
Loading…
Reference in New Issue
Block a user