PhilipsHue / PhilipsHueSDK-iOS-OSX

The Software Development Kit for Philips Hue on iOS and OS X (beta)
579 stars 169 forks source link

Duplicating of requests after wifi reenabling #85

Open josshad opened 9 years ago

josshad commented 9 years ago

After losing of connection I stop huesdk:

[phhue disableLocalConnection];
[phhue stopSDK];
phhue = nil;

After reconnection to wifi:

phhue = [PHHueSDK new];
[phhue enableLogging:YES];
[phhue startUpSDK];

When I call

[phhue enableLocalConnection];

I see, that there are sent two requests:

HTTP Request:
URL: http://192.168.31.219/api/zTK6JNTJlBZqTzwG
Method: GET
Body: 
HTTP Request:
URL: http://192.168.31.219/api/zTK6JNTJlBZqTzwG
Method: GET
Body: *

After second reconnection will be sent 3 request and so on..

How can I awoid it?