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

Origin commit data
------------------
Branch: ni/coolstream
Commit: fcc3a12e88
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-05-23 (Tue, 23 May 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-05-23 17:52:16 +02:00
parent bf7c16e8d6
commit 67490319f9

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);