projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
068744b
)
Mesh: Remove Timer before destroying app object
71/242171/1
author
Anupam
<anupam.r@samsung.com>
Mon, 24 Aug 2020 16:35:49 +0000
(22:05 +0530)
committer
Anupam
<anupam.r@samsung.com>
Mon, 24 Aug 2020 16:36:25 +0000
(22:06 +0530)
Change-Id: I4bf2b2b9a29fe43408147537a439299f81bd250e
Signed-off-by: Anupam <anupam.r@samsung.com>
bt-oal/bluez_hal/src/bt-hal-mesh-dbus-handler.c
patch
|
blob
|
history
diff --git
a/bt-oal/bluez_hal/src/bt-hal-mesh-dbus-handler.c
b/bt-oal/bluez_hal/src/bt-hal-mesh-dbus-handler.c
index 00b280b8f5c85170a412f17c85a3b15a9f6417b5..eaca007b82bc9ea60b980d0c694a9d3bfd36a099 100644
(file)
--- a/
bt-oal/bluez_hal/src/bt-hal-mesh-dbus-handler.c
+++ b/
bt-oal/bluez_hal/src/bt-hal-mesh-dbus-handler.c
@@
-358,6
+358,12
@@
static void __bt_hal_mesh_destroy_app_object(gpointer data)
g_slist_length(app->elements));
g_slist_free_full(app->elements, __mesh_hal_free_elements);
}
+
+ if (app->scan_timer_id > 0) {
+ INFO("Mesh: Remove timer if already running");
+ g_source_remove(app->scan_timer_id);
+ app->scan_timer_id = 0;
+ }
g_free(app);
}