Fix potential segfault in doSync
This commit is contained in:
parent
e8f1ceff3a
commit
94bb2aa0f1
1 changed files with 1 additions and 0 deletions
|
@ -208,6 +208,7 @@ namespace Mist{
|
||||||
/// If this happens, the extra calls to the function return instantly.
|
/// If this happens, the extra calls to the function return instantly.
|
||||||
void Output::doSync(bool force){
|
void Output::doSync(bool force){
|
||||||
static bool recursing = false;
|
static bool recursing = false;
|
||||||
|
if (!statsPage.getData()){return;}
|
||||||
if (recursing){return;}
|
if (recursing){return;}
|
||||||
recursing = true;
|
recursing = true;
|
||||||
IPC::statExchange tmpEx(statsPage.getData());
|
IPC::statExchange tmpEx(statsPage.getData());
|
||||||
|
|
Loading…
Add table
Reference in a new issue