From 437ca715b662728da85f228d399c4619e31ae669 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 18 Aug 2008 22:18:22 +0000 Subject: [PATCH] Additional screensaver bug fix svn path=/trunk/boinc/; revision=15879 --- clientscr/screensaver.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/clientscr/screensaver.cpp b/clientscr/screensaver.cpp index 8e44f44445..1bb62cbbb8 100644 --- a/clientscr/screensaver.cpp +++ b/clientscr/screensaver.cpp @@ -447,21 +447,7 @@ void *CScreensaver::DataManagementProc() { previous_result_ptr = NULL; // waitpid test will clear m_hGraphicsApplication } -#if 0 - // Safety check that task is actually running - if (last_run_check_time && ((dtime() - last_run_check_time) > TASK_RUN_CHECK_PERIOD)) { - if (FindProcessPID(NULL, ? ? ?) == 0) { - terminate_screensaver(m_hGraphicsApplication, graphics_app_result_ptr); - if (m_hGraphicsApplication == 0) { - graphics_app_result_ptr = NULL; - // Save previous_result and previous_result_ptr for get_random_graphics_app() call - } else { - // waitpid test will clear m_hGraphicsApplication and graphics_app_result_ptr - } - previous_result_ptr = NULL; - } - } -#endif + if (last_change_time && ((dtime() - last_change_time) > GFX_CHANGE_PERIOD)) { if (count_active_graphic_apps(results, previous_result_ptr) > 0) { if (previous_result_ptr) {