Skip to content

Commit

Permalink
Update Synaction.m
Browse files Browse the repository at this point in the history
  • Loading branch information
Ge0rges authored Aug 31, 2023
1 parent 2847ea2 commit 11e8afe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Synaction/Synaction/Synaction.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@ - (void)askPeersToCalculateOffset:(NSArray <GCDAsyncSocket*>* _Nonnull)peers {
- (void)calculateTimeOffsetWithHost:(GCDAsyncSocket *)hostPeer {
NSLog(@"Called calibrate function.");

if (!self.isCalibrating) {
NSLog(@"Calibration request valid sending ping.");
if (!self.isCalibrating) {
NSLog(@"Calibration request valid sending ping.");

self.isCalibrating = YES;// Used to track the calibration
calculatedOffsets = 0;// Reset calculated offsets number
totalCalculatedOffsets = 0;

// Handle 0 calibrations
if (self.maxNumberOfCalibrations == 0) {
NSLog(@"Max calibs 0 so ending now.");
NSLog(@"Max calibs 0 so ending now.");

self.isCalibrating = NO;

Expand Down

0 comments on commit 11e8afe

Please sign in to comment.