Main: fix crash without state file
If no state file is configured, don't chek for state changes.
This commit is contained in:
parent
a9d2dc6144
commit
cd1bb2bafa
|
@ -348,7 +348,8 @@ idle_event_emitted(void)
|
||||||
if (flags != 0)
|
if (flags != 0)
|
||||||
instance->client_list->IdleAdd(flags);
|
instance->client_list->IdleAdd(flags);
|
||||||
|
|
||||||
if (flags & (IDLE_PLAYLIST|IDLE_PLAYER|IDLE_MIXER|IDLE_OUTPUT))
|
if (flags & (IDLE_PLAYLIST|IDLE_PLAYER|IDLE_MIXER|IDLE_OUTPUT) &&
|
||||||
|
state_file != nullptr)
|
||||||
state_file->CheckModified();
|
state_file->CheckModified();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue