fix(shard): 🚑 Hangup not working properly.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user