From ec83ed182b1a49aa7647a70be40d32ff09e3bd81 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 5 Sep 2018 11:43:02 -0400 Subject: [PATCH] Clean up. --- .../src/Messages/Attachments/TSAttachmentStream.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SignalServiceKit/src/Messages/Attachments/TSAttachmentStream.m b/SignalServiceKit/src/Messages/Attachments/TSAttachmentStream.m index 2cbf1b137..aaa3e7189 100644 --- a/SignalServiceKit/src/Messages/Attachments/TSAttachmentStream.m +++ b/SignalServiceKit/src/Messages/Attachments/TSAttachmentStream.m @@ -8,7 +8,6 @@ #import "OWSFileSystem.h" #import "TSAttachmentPointer.h" #import -#import #import #import @@ -706,7 +705,8 @@ typedef void (^OWSLoadedThumbnailSuccess)(OWSLoadedThumbnail *loadedThumbnail); failure:^{ dispatch_semaphore_signal(semaphore); }]; - // Wait up to five seconds. + + // Wait up to N seconds. dispatch_semaphore_wait(semaphore, dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC))); @synchronized(self) { return loadedThumbnail;