mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2025-03-01 17:23:25 +08:00
Update task.py
This commit is contained in:
parent
9c4b1892d1
commit
27319fdf0f
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class TaskRepository:
|
|||
file.thumb_name = media.thumb_name
|
||||
|
||||
self._session.add(file)
|
||||
async with ASYNC_LOCK:
|
||||
async with SHARED_ASYNC_LOCK:
|
||||
await self._session.flush([file])
|
||||
return file
|
||||
|
||||
|
|
Loading…
Reference in a new issue