fix(shard): 🚑 Hangup not working properly.

This commit is contained in:
Nyeki.py
2024-11-16 01:00:12 -03:00
parent 5d3441a13e
commit a208a20558
+6 -4
View File
@@ -492,11 +492,13 @@ class CallHandler:
)
]
for channel in channels:
await self.set_searching(channel, False)
pipe = self.bot.redis.pipeline(transaction=True)
await self.bot.redis.hdel("calls:channels:active", *channels)
await self.bot.redis.hdel("calls:calls:active", call_id)
pipe.srem("calls:channels:searching", *channels)
pipe.hdel("calls:channels:active", *channels)
pipe.hdel("calls:calls:active", call_id)
await pipe.execute()
return tuple(channels)