Prevent to delete timer twice 58/272058/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 7 Mar 2022 12:58:10 +0000 (21:58 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 8 Mar 2022 01:33:07 +0000 (10:33 +0900)
if it returns ECORE_CALLBACK_CANCEL in timer callback it will be deleted automatically

Change-Id: I46bf3eb609d33d26ec9d88c69ade1b050230f01c
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_main.c

index 3539149..4f4bb1a 100644 (file)
@@ -227,11 +227,7 @@ _will_hide_timer_handler(void *data)
         g_input_panel_state = E_INPUT_PANEL_STATE_DID_HIDE;
      }
 
-   if (g_timer_will_hide)
-     {
-        ecore_timer_del(g_timer_will_hide);
-        g_timer_will_hide = NULL;
-     }
+   g_timer_will_hide = NULL;
 
    return ECORE_CALLBACK_CANCEL;
 }