mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix deadlock in case the message doesn't contain any media
This commit is contained in:
parent
282e2bb79b
commit
027f843047
1 changed files with 2 additions and 2 deletions
|
|
@ -320,10 +320,10 @@ class Client:
|
|||
pass
|
||||
|
||||
os.renames("./{}".format(tmp_file_name), "./downloads/{}".format(file_name))
|
||||
|
||||
done.set()
|
||||
except Exception as e:
|
||||
log.error(e, exc_info=True)
|
||||
finally:
|
||||
done.set()
|
||||
|
||||
log.debug("{} stopped".format(name))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue