mirror of
https://github.com/solero/houdini.git
synced 2024-11-22 05:27:23 +00:00
Make sure references to penguin object are expunged by gc
This commit is contained in:
parent
49a172087e
commit
6fc147b62b
@ -67,7 +67,7 @@ class _CooldownMapping:
|
|||||||
|
|
||||||
def _get_bucket_key(self, p):
|
def _get_bucket_key(self, p):
|
||||||
if self._cooldown.bucket_type == BucketType.Default:
|
if self._cooldown.bucket_type == BucketType.Default:
|
||||||
return p
|
return p.id
|
||||||
return p.server
|
return p.server
|
||||||
|
|
||||||
def _verify_cache_integrity(self):
|
def _verify_cache_integrity(self):
|
||||||
|
@ -96,6 +96,8 @@ class PenguinBackyardRoom(RoomMixin):
|
|||||||
await p.send_xt('jr', self.id, await p.string)
|
await p.send_xt('jr', self.id, await p.string)
|
||||||
|
|
||||||
async def remove_penguin(self, p):
|
async def remove_penguin(self, p):
|
||||||
|
self.penguin = None
|
||||||
|
|
||||||
p.room = None
|
p.room = None
|
||||||
p.frame = 1
|
p.frame = 1
|
||||||
p.toy = None
|
p.toy = None
|
||||||
|
Loading…
Reference in New Issue
Block a user