Add a short delay to the active user checking process to be sure that child mainloops... 83/118783/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 14 Mar 2017 05:05:44 +0000 (14:05 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 14 Mar 2017 05:05:44 +0000 (14:05 +0900)
Change-Id: Iaeda8f61209a14ad57204bb196bbcd208c0233a6
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/ActiveUserMonitor.cpp

index 4571c08..7ed9f8e 100644 (file)
@@ -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()