Fix change signal handler 07/233807/2
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 19 May 2020 08:15:53 +0000 (17:15 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 19 May 2020 08:46:45 +0000 (17:46 +0900)
- Do not check previous mode

Change-Id: Ie3adf9e1a12636a2d33cf8a2ab4416381b137678
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/base/watch_base.c

index b052851..95edc53 100755 (executable)
@@ -569,8 +569,8 @@ int __on_change_signal(const char *endpoint, aul_app_com_result_e e,
        bundle_get_str(envelope, "__AMBIENT_MODE__", &mode);
        bundle_get_str(envelope, "__AMBIENT_EXTRA__", &extra);
 
-       if ((mode == NULL) || (__context.ambient_mode == atoi(mode))) {
-               _E("invalid state (%d) (%s)", __context.ambient_mode, mode);
+       if (mode == NULL) {
+               _E("mode is nullptr");
                return 0;
        }
        __context.extra = bundle_decode((bundle_raw *)extra, strlen(extra));