nemomobile / buteo-sync-plugins

1 stars 7 forks source link

Added hack to pause between bluetooth connect and open #27

Closed kavuri closed 10 years ago

kavuri commented 10 years ago

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

blammit commented 10 years ago

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)