projects
/
platform
/
core
/
connectivity
/
bluetooth-agent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c75c25
)
Fix crash issue while bt is disabled
57/319357/1
accepted/tizen/7.0/unified/20241022.163356
author
Wootak Jung
<wootak.jung@samsung.com>
Tue, 22 Oct 2024 02:00:27 +0000
(11:00 +0900)
committer
Wootak Jung
<wootak.jung@samsung.com>
Tue, 22 Oct 2024 02:00:27 +0000
(11:00 +0900)
Change-Id: Ibf479cf226bae2176220a31e940e254cb010c793
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
hf-agent/bluetooth-hf-agent.c
patch
|
blob
|
history
diff --git
a/hf-agent/bluetooth-hf-agent.c
b/hf-agent/bluetooth-hf-agent.c
index 5f10057b1a4c03d7b4632c75e95c0e9143456a25..c51c4af6b43c5d38fd752b9c320b5a89f15cd805 100644
(file)
--- a/
hf-agent/bluetooth-hf-agent.c
+++ b/
hf-agent/bluetooth-hf-agent.c
@@
-3190,11
+3190,13
@@
static void __bt_hf_agent_sigterm_handler(int signo)
}
INFO("Getting gdbus connection done");
- __bt_hf_agent_emit_signal(conn,
- BT_HF_AGENT_OBJECT_PATH,
- BT_HF_SERVICE_INTERFACE,
- "CallIdle", NULL);
- INFO("CallEnded Signal done");
+ if (gmain_loop) {
+ __bt_hf_agent_emit_signal(conn,
+ BT_HF_AGENT_OBJECT_PATH,
+ BT_HF_SERVICE_INTERFACE,
+ "CallIdle", NULL);
+ INFO("CallEnded Signal done");
+ }
g_dbus_connection_flush(conn, NULL, NULL, NULL);
INFO("Flush g_dbus_connection");