mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-14 11:57:44 +00:00
Force flush + close of FD
This commit is contained in:
parent
152f998798
commit
5d71a6c9b9
1 changed files with 2 additions and 0 deletions
|
@ -141,6 +141,8 @@ class MediaStorage:
|
|||
with start_active_span("writing to main media repo"):
|
||||
with open(fname, "wb") as f:
|
||||
yield f, fname
|
||||
f.flush()
|
||||
f.close()
|
||||
|
||||
with start_active_span("writing to other storage providers"):
|
||||
spam_check = (
|
||||
|
|
Loading…
Reference in a new issue