From 488ac53314b69245ef19bc38136dfbfbff5ab3f5 Mon Sep 17 00:00:00 2001 From: Pavel Ivashkov Date: Tue, 6 Jun 2017 17:41:31 +0300 Subject: [PATCH] Fix connection error after rescan: No peripheral discovered with the corresponding UUID --- source/PTDBeanManager.m | 1 + 1 file changed, 1 insertion(+) diff --git a/source/PTDBeanManager.m b/source/PTDBeanManager.m index b82488a..de499b8 100644 --- a/source/PTDBeanManager.m +++ b/source/PTDBeanManager.m @@ -78,6 +78,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])){