From 23bccb2d6df236da25e3fa66a4c72a3bea0cbddd Mon Sep 17 00:00:00 2001 From: overtake Date: Fri, 28 Apr 2017 11:31:00 +0300 Subject: [PATCH] - a lot of changes and features --- Postbox/MediaBox.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }