mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix deadlock in case the message doesn't contain any media
This commit is contained in:
parent
282e2bb79b
commit
027f843047
@ -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…
x
Reference in New Issue
Block a user