Fix potential segfault in doSync

This commit is contained in:
Thulinma 2018-05-07 10:16:55 +02:00
parent e8f1ceff3a
commit 94bb2aa0f1

View file

@ -208,6 +208,7 @@ namespace Mist{
/// If this happens, the extra calls to the function return instantly.
void Output::doSync(bool force){
static bool recursing = false;
if (!statsPage.getData()){return;}
if (recursing){return;}
recursing = true;
IPC::statExchange tmpEx(statsPage.getData());