Fix timer handle leak issue 91/232691/4
authorhyunho <hhstark.kang@samsung.com>
Thu, 7 May 2020 07:04:36 +0000 (16:04 +0900)
committerhyunho <hhstark.kang@samsung.com>
Fri, 8 May 2020 02:58:56 +0000 (11:58 +0900)
Change-Id: Ifa68988421e6eb55185819c8317543bb8e0072e5
Signed-off-by: hyunho <hhstark.kang@samsung.com>
screen_connector_remote_surface_evas/remote_surface_evas.cc

index 07d21f9..121e677 100644 (file)
@@ -542,6 +542,11 @@ void RemoteSurfaceEvas::ClearNoRenderTimer() {
 
 void RemoteSurfaceEvas::NoRenderPush(int timeout) {
   LOGI("No render push start");
+  if(impl_->no_render_timer_) {
+    LOGW("no render push is already started skip this one");
+    return;
+  }
+
   elm_win_norender_push(impl_->viewer_win_->GetRaw());
   impl_->no_render_timer_ = g_timeout_add(timeout,
       [](gpointer user_data)->gboolean {