troystribling / BlueCap

iOS Bluetooth LE framework
MIT License
715 stars 115 forks source link

Peripheral.connect retries even after a timeout #58

Closed yostane closed 7 years ago

yostane commented 7 years ago

Hi,

I noted that the peripheral.connect tries to connect even after getting a timeout. Here is a scenario.

Maintain a peripheral connected to a central A Run peripheral.connect(timeout: 10) on central B. B cannot connect since the connection is owned by 1. onFailed is called after the timeout on central B central A disconnects Central B connects but it should not because we got a timeout

Is there a way to avoid this ? Thanks,

troystribling commented 7 years ago

Thanks for finding a bug. This is fixed in pod 0.5.2.