Skip to content

Commit

Permalink
Fix connection error after rescan: No peripheral discovered with the …
Browse files Browse the repository at this point in the history
…corresponding UUID
  • Loading branch information
paiv committed Jun 6, 2017
1 parent 7ac3b45 commit c391f09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/PTDBeanManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ -(void)startScanningForBeans_error:(NSError**)error{
PTDBean* bean;
//If this bean is already in out records, pass it back to the delegate as having been discovered!
if((bean = [beanRecords objectForKey:beanPeripheral.identifier])){
bean.lastDiscovered = [NSDate date];
[self __notifyDelegateOfDiscoveredBean:bean error:nil];
}else{ //If this bean's peripheral is connected and not in our records, another app could have connected to it.
if((bean = [[PTDBean alloc] initWithPeripheral:beanPeripheral beanManager:self])){
Expand Down

0 comments on commit c391f09

Please sign in to comment.