From: Mu-Woong Lee Date: Tue, 14 Mar 2017 05:05:44 +0000 (+0900) Subject: Add a short delay to the active user checking process to be sure that child mainloops... X-Git-Tag: submit/tizen/20170413.031950^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d704ec6368ca8a2af8d3097ca8c18261c1a1bdec;p=platform%2Fcore%2Fcontext%2Fcontext-service.git Add a short delay to the active user checking process to be sure that child mainloops are running Change-Id: Iaeda8f61209a14ad57204bb196bbcd208c0233a6 Signed-off-by: Mu-Woong Lee --- diff --git a/src/ActiveUserMonitor.cpp b/src/ActiveUserMonitor.cpp index 4571c08..7ed9f8e 100644 --- a/src/ActiveUserMonitor.cpp +++ b/src/ActiveUserMonitor.cpp @@ -49,7 +49,7 @@ void ActiveUserMonitor::start(GDBusConnection* conn, uid_cb_t activateUser, uid_ NULL, "org.freedesktop.login1.Manager", "UserRemoved", NULL, NULL, G_DBUS_SIGNAL_FLAGS_NONE, __onUserRemoved, this, NULL); - g_idle_add(__checkCurrentUser, this); + g_timeout_add(200, __checkCurrentUser, this); } void ActiveUserMonitor::stop()