From c6f144420ba0da4e5f4b76d5999c01b8aadb8778 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 23 Sep 2014 21:26:51 +0200 Subject: [PATCH] android: Fix not clearing up start timeout watch If start failed due to no adapter being ready before timeout fired invalid watch was removed on shutdown resulting in: (bluetoothd:17083): GLib-CRITICAL **: Source ID 2 was not found when attempting to remove it --- android/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/main.c b/android/main.c index e99b45131..1250562f6 100644 --- a/android/main.c +++ b/android/main.c @@ -357,6 +357,9 @@ static void bluetooth_stopped(void) static gboolean quit_eventloop(gpointer user_data) { g_main_loop_quit(event_loop); + + bluetooth_start_timeout = 0; + return FALSE; } -- 2.47.3