From 904e168bb634e11a6626a4d0665f1d279c833ebe Mon Sep 17 00:00:00 2001 From: zhouyongfei Date: Thu, 16 Dec 2021 21:05:01 +0800 Subject: [PATCH] refresh Signed-off-by: zhouyongfei --- frameworks/inputmethod_ability/include/event_target.h | 2 +- frameworks/inputmethod_ability/src/event_target.cpp | 3 +++ services/src/peruser_session.cpp | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frameworks/inputmethod_ability/include/event_target.h b/frameworks/inputmethod_ability/include/event_target.h index 80ae0c8..e4aa750 100644 --- a/frameworks/inputmethod_ability/include/event_target.h +++ b/frameworks/inputmethod_ability/include/event_target.h @@ -47,7 +47,7 @@ namespace MiscServices { EventListener *last_; private: - int LISTENER_TYPTE_MAX_LENGTH = 64; + static const int LISTENER_TYPTE_MAX_LENGTH = 64; }; } } diff --git a/frameworks/inputmethod_ability/src/event_target.cpp b/frameworks/inputmethod_ability/src/event_target.cpp index 877a148..bd50e02 100644 --- a/frameworks/inputmethod_ability/src/event_target.cpp +++ b/frameworks/inputmethod_ability/src/event_target.cpp @@ -222,6 +222,9 @@ namespace MiscServices { delete eventTargetCB; } }); + if (ret != 0) { + IMSA_HILOGI("EventTarget::Emit failed to execute libuv work queue"); + } delete work; } } diff --git a/services/src/peruser_session.cpp b/services/src/peruser_session.cpp index a6e9d34..e8253c3 100644 --- a/services/src/peruser_session.cpp +++ b/services/src/peruser_session.cpp @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +#include "unistd.h" // usleep #include "platform.h" #include "parcel.h" #include "message_parcel.h"