Sometimes, after a bluetooth connection succeeds, open() call fails. But
if a pause is introduced, open() works. So, introduced a retry count and
a pause of 100msec to allow the BT open to work properly.
LGTM, discussed on irc about an extra EINTR check, and concluded it shouldn't be necessary as open() should be called again if we run into this unusual case. (Robin, please let me know if you think otherwise)
Sometimes, after a bluetooth connection succeeds, open() call fails. But if a pause is introduced, open() works. So, introduced a retry count and a pause of 100msec to allow the BT open to work properly.
Signed-off-by: Sateesh Kavuri sateesh.kavuri@gmail.com