mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +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
|
||||
|
||||
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 New Issue
Block a user