Parent: 5202ff40cf649f68b7d2a81ac794091db224eef2
Author: Bastien Nocera <hadess@hadess.net>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2017-11-17 16:08:35
Tree: b464c921b665c398e7804764860ae2882c2b1c50
device: Fix possible run-time warning When a reconnect timeout has previously run for a device, setting a new one will throw a warning as the timeout id is not reset when the timeout is cancelled from within its callback. bluetoothd[7731]: GLib: Source ID 526 was not found when attempting to remove it bluetoothd[7731]: ++++++++ backtrace ++++++++ bluetoothd[7731]: #1 g_logv+0x25d (/usr/lib64/libglib-2.0.so.0.5400.1) [0x50d5a7d] bluetoothd[7731]: #2 g_log+0x8f (/usr/lib64/libglib-2.0.so.0.5400.1) [0x50d5bef] bluetoothd[7731]: #3 g_source_remove+0x7c (/usr/lib64/libglib-2.0.so.0.5400.1) [0x50cd8dc] bluetoothd[7731]: #4 intr_watch_cb+0x1b5 (profiles/input/device.c:1217) [0x42f465] bluetoothd[7731]: #5 g_main_context_dispatch+0x157 (/usr/lib64/libglib-2.0.so.0.5400.1) [0x50cebb7] bluetoothd[7731]: #6 g_main_context_iterate.isra.25+0x200 (/usr/lib64/libglib-2.0.so.0.5400.1) [0x50cef60] bluetoothd[7731]: #7 g_main_loop_run+0xc2 (/usr/lib64/libglib-2.0.so.0.5400.1) [0x50cf272] bluetoothd[7731]: #8 main+0x839 (src/main.c:772) [0x40bd69] bluetoothd[7731]: #9 __libc_start_main+0xe7 (../csu/libc-start.c:340) [0x5d12187] bluetoothd[7731]: #10 _start+0x2a (/home/hadess/Projects/jhbuild/bluez/src/bluetoothd) [0x40c59a] bluetoothd[7731]: +++++++++++++++++++++++++++
Diffstat
| M | profiles/input/device.c | | | 12 | ++++++++- - - - |
1 files changed, 8 insertions(+), 4 deletions(-)