diff options
author | Haejeong Kim <backto.kim@samsung.com> | 2017-09-21 16:36:48 +0900 |
---|---|---|
committer | Haejeong Kim <backto.kim@samsung.com> | 2017-09-21 16:36:48 +0900 |
commit | 85f0a53a28c5d701ccdb5c2408d0ebfa5409f1c4 (patch) | |
tree | 2886efebf5b089538a647e092a3debe76e039305 | |
parent | a7a3b90d1f4d17492a65ad8fd9cebc3c2d5dbfb7 (diff) | |
download | media-controller-85f0a53a28c5d701ccdb5c2408d0ebfa5409f1c4.tar.gz media-controller-85f0a53a28c5d701ccdb5c2408d0ebfa5409f1c4.tar.bz2 media-controller-85f0a53a28c5d701ccdb5c2408d0ebfa5409f1c4.zip |
Break if find listener
Change-Id: Ie59381c0364813c6085bbd2453be31c096f30c5e
-rwxr-xr-x | src/media_controller_ipc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/media_controller_ipc.c b/src/media_controller_ipc.c index fea4c47..57a5a3d 100755 --- a/src/media_controller_ipc.c +++ b/src/media_controller_ipc.c @@ -72,6 +72,7 @@ static void __mc_ipc_signal_cb(GDBusConnection *connection, if (listener && !g_strcmp0(listener->key, key)) { mc_debug("Received : [%s] (flags = %x) from %s.%s", message, internal_flags, listener->interface_name, listener->signal_name); listener->callback(listener->interface_name, listener->signal_name, message, 0, listener->user_data); + break; } } MC_SAFE_FREE(key); @@ -238,6 +239,7 @@ int mc_ipc_unregister_listener(GList *listener_list, GDBusConnection *connection (listener_list) = g_list_remove(listener_list, listener); MC_SAFE_FREE(listener); mc_debug("listener[%s.%s] is unregistered. listener_cnt[%d]", interface_name, signal_name, g_list_length(listener_list)); + break; } } |