Fix deadlock in case the message doesn't contain any media

This commit is contained in:
Dan 2018-02-19 13:43:16 +01:00
parent 282e2bb79b
commit 027f843047

View File

@ -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))