fix(shard): 🚑 Hangup not working properly.
This commit is contained in:
@@ -492,11 +492,13 @@ class CallHandler:
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
||||||
for channel in channels:
|
pipe = self.bot.redis.pipeline(transaction=True)
|
||||||
await self.set_searching(channel, False)
|
|
||||||
|
|
||||||
await self.bot.redis.hdel("calls:channels:active", *channels)
|
pipe.srem("calls:channels:searching", *channels)
|
||||||
await self.bot.redis.hdel("calls:calls:active", call_id)
|
pipe.hdel("calls:channels:active", *channels)
|
||||||
|
pipe.hdel("calls:calls:active", call_id)
|
||||||
|
|
||||||
|
await pipe.execute()
|
||||||
|
|
||||||
return tuple(channels)
|
return tuple(channels)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user