Skip to content

Commit

Permalink
Fixed a bug that prevented the offset from being recalculated completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Ge0rges committed Jun 9, 2017
1 parent c0545a5 commit 58413f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Synaction/Synaction.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ - (void)askPeersToCalculateOffset:(NSArray <MCPeerID*>* _Nonnull)peers {
- (void)calculateTimeOffsetWithHost:(MCPeerID *)hostPeer {
if (!isCalibrating) {
isCalibrating = YES;// Used to track the calibration
self.hostTimeOffset = 0;

calculatedOffsets = 0;// Reset calculated offsets number
totalCalculatedOffsets = 0;

Expand Down

0 comments on commit 58413f1

Please sign in to comment.