diff --git a/Postbox/MediaBox.swift b/Postbox/MediaBox.swift index 13abd5cd0b..9ebe9d4782 100644 --- a/Postbox/MediaBox.swift +++ b/Postbox/MediaBox.swift @@ -751,7 +751,7 @@ public final class MediaBox { } } case let .moveLocalFile(tempPath): - if let thisFd = thisFd { + if let thisFd = fd { close(thisFd) fd = nil }