Skip to content

Commit

Permalink
Fix the block bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
xhzengAIB committed May 14, 2014
1 parent 29e24d3 commit d064dfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MessageDisplayKit/Classes/Common/XHVoiceRecordHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ - (void)_updateMeters {
if (!_isPause) {
float progress = self.currentTimeInterval / self.maxRecordTime * 1.0;
dispatch_async(dispatch_get_main_queue(), ^{
_recordProgress(progress);
if (_recordProgress) {
_recordProgress(progress);
}
});
}

Expand Down

0 comments on commit d064dfc

Please sign in to comment.