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;