Skip to content

Commit

Permalink
patch to prevent batch_queue leakages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nubuki-all committed Nov 5, 2023
1 parent 0a7db0d commit e183686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bot/utils/batch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ async def batch_preview(event, torrent, chat_id, e_id, v, f):
await asyncio.sleep(3)
while True:
if not BATCH_ING:
if not preview_queue:
return
break
if not preview_queue:
return
async with batch_lock:
msg, button = await get_preview_msg(
torrent.file_list, preview_queue, v, f
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.1.0-beta.1.1 (beta)
v2.1.0-beta.1.1-0.1.patch (beta)

0 comments on commit e183686

Please sign in to comment.