Fix gsource timer deletion 93/293193/4
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 22 May 2023 09:47:08 +0000 (18:47 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 22 May 2023 14:49:54 +0000 (14:49 +0000)
This implementation error cause invalid removing source.

Change-Id: I1dea3071aed99576d737ee4c9be00f7a688f9e6b
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/launchpad-process-pool/loader_context.cc

index a0cc8553bb2901aebebdeba4d69ea2973a4f89ce..8ced9b83f66ca6441120ca9b9240854e83933d48 100644 (file)
@@ -419,6 +419,7 @@ unsigned int LoaderContext::GetScore() const {
 
 gboolean LoaderContext::TimeoutCb(gpointer user_data) {
   auto* context = static_cast<LoaderContext*>(user_data);
+  context->timer_ = 0;
   auto* listener = context->listener_;
   if (listener != nullptr)
     listener->OnTimeoutEvent(context);