src/gui/screensaver.cpp try to fix segfault on stop

This commit is contained in:
Jacek Jendrzej
2017-05-23 17:52:16 +02:00
parent 6e8c1cac96
commit fcc3a12e88

View File

@@ -164,7 +164,7 @@ void* CScreenSaver::ScreenSaverPrg(void* arg)
if (g_settings.screensaver_timeout)
{
while(1)
while(PScreenSaver)
{
PScreenSaver->paint();
sleep(g_settings.screensaver_timeout);