mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-10 16:44:50 +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
|
pass
|
||||||
|
|
||||||
os.renames("./{}".format(tmp_file_name), "./downloads/{}".format(file_name))
|
os.renames("./{}".format(tmp_file_name), "./downloads/{}".format(file_name))
|
||||||
|
|
||||||
done.set()
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(e, exc_info=True)
|
log.error(e, exc_info=True)
|
||||||
|
finally:
|
||||||
|
done.set()
|
||||||
|
|
||||||
log.debug("{} stopped".format(name))
|
log.debug("{} stopped".format(name))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue