Skip to content

Commit d064dfc

Browse files
committed
Fix the block bug.
1 parent 29e24d3 commit d064dfc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MessageDisplayKit/Classes/Common/XHVoiceRecordHelper.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ - (void)_updateMeters {
221221
if (!_isPause) {
222222
float progress = self.currentTimeInterval / self.maxRecordTime * 1.0;
223223
dispatch_async(dispatch_get_main_queue(), ^{
224-
_recordProgress(progress);
224+
if (_recordProgress) {
225+
_recordProgress(progress);
226+
}
225227
});
226228
}
227229

0 commit comments

Comments
 (0)