commit | b8aa037602eff1fe5fbc9cce07a6f9bc34d19a3e | [log] [tgz] |
---|---|---|
author | Jaikumar Ganesh <jaikumar@google.com> | Wed Mar 31 11:23:49 2010 -0700 |
committer | Jaikumar Ganesh <jaikumar@google.com> | Wed Mar 31 11:29:18 2010 -0700 |
tree | e96321a149fce739287328fd90494cd1eacce029 | |
parent | 0e09030977aea8b40fd177139528d4b5637c9771 [diff] |
Fix crash while turning bluetooth on, due to a race condition. Bug: 2561150 Race condition: We were basing whether the event loop is running or not on whether nat->pollData was null or not. In rare cases, eventLoopMain would have not started, isEventLoopRunning returns true; java side makes a dbus call and the watches get set to null, causing a crash in dbus_connection_set_watch_functions when eventLoopMain starts. Change-Id: I863f182185a8e956fd53cb58783b7fe0ecfb2ddb