From: Woochan Lee Date: Tue, 13 Jun 2023 10:36:24 +0000 (+0900) Subject: libaurum: Exception handling for idle listen already finished X-Git-Tag: accepted/tizen/unified/20230615.060047^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F294123%2F1;p=platform%2Fcore%2Fuifw%2Faurum.git libaurum: Exception handling for idle listen already finished If event listening loop already finished the idle flag will changed to READY We need to keep READY status for other event listening. Change-Id: Ida65b41cfadce3caf8b3d2253a57f93eeb60e99e --- diff --git a/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc b/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc index 0eba532..8f294df 100644 --- a/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc +++ b/libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc @@ -233,7 +233,8 @@ gpointer AtspiAccessibleWatcher::timerThread(gpointer data) // instead of waiting specific time if (((std::chrono::system_clock::now() - mStartTime) > std::chrono::milliseconds{WAIT_FOR_IDLE_MILLI_SEC}) || - (mRenderCount == 0)) + (mRenderCount == 0) || + (isIdle == IdleEventState::IDLE_LISTEN_READY)) { break; } @@ -242,7 +243,8 @@ gpointer AtspiAccessibleWatcher::timerThread(gpointer data) } mTimerThread = nullptr; - isIdle = IdleEventState::IDLE_LISTEN_DONE; + if (isIdle != IdleEventState::IDLE_LISTEN_READY) + isIdle = IdleEventState::IDLE_LISTEN_DONE; g_thread_exit(NULL); return NULL;