diff options
author | Nick Pelly <npelly@google.com> | 2010-01-22 14:08:15 -0800 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-01-22 14:12:12 -0800 |
commit | 21bf222446846af90560dc55616450a1f4262d69 (patch) | |
tree | 5a3ccd29e5d6f748a245b9329ec99cdc10b6d59e /core/jni/android_server_BluetoothEventLoop.cpp | |
parent | 264ce3825892e4b5ef6af61d330832f4592130bf (diff) | |
download | frameworks_base-21bf222446846af90560dc55616450a1f4262d69.zip frameworks_base-21bf222446846af90560dc55616450a1f4262d69.tar.gz frameworks_base-21bf222446846af90560dc55616450a1f4262d69.tar.bz2 |
Fix leak of DBus match rule.
We were registering a match for 'AudioSink', but unregistering 'audio.sink'.
This does not immediately cause an error, but stress testing of BT off/on found
that the leak causes a DBus Limits Error after ~300 iterations. It then becomes
impossible to turn BT on again until a reboot.
Diffstat (limited to 'core/jni/android_server_BluetoothEventLoop.cpp')
-rw-r--r-- | core/jni/android_server_BluetoothEventLoop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_server_BluetoothEventLoop.cpp b/core/jni/android_server_BluetoothEventLoop.cpp index d2e9454..4e1ae62 100644 --- a/core/jni/android_server_BluetoothEventLoop.cpp +++ b/core/jni/android_server_BluetoothEventLoop.cpp @@ -382,7 +382,7 @@ static void tearDownEventLoop(native_data_t *nat) { dbus_connection_unregister_object_path(nat->conn, agent_path); dbus_bus_remove_match(nat->conn, - "type='signal',interface='org.bluez.audio.Sink'", + "type='signal',interface='org.bluez.AudioSink'", &err); if (dbus_error_is_set(&err)) { LOG_AND_FREE_DBUS_ERROR(&err); |