Skip to content

Commit

Permalink
Merge c4e7487 into 55f6877
Browse files Browse the repository at this point in the history
  • Loading branch information
castral committed Feb 24, 2015
2 parents 55f6877 + c4e7487 commit e3da98e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Pod/Classes/WLXBluetoothConnectionManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ - (void)didConnect {
}
[self.reconnectionStrategy reset];
_connected = YES;
_connecting = NO;
_reconnecting = NO;

// We don't want to create a service manager every time a connection is made
// because all the cached data will be lost if we do so. Using the same instance every time
// is not a problem because an instance of connection manager always handles the same
Expand All @@ -185,6 +184,9 @@ - (void)didConnect {
} else if (!self.reconnecting) {
[self.delegate connectionManagerDidConnect:self];
}

_connecting = NO;
_reconnecting = NO;
}

#pragma mark - Private methods
Expand Down

0 comments on commit e3da98e

Please sign in to comment.