Commit cd1bb2ba authored by Max Kellermann's avatar Max Kellermann

Main: fix crash without state file

If no state file is configured, don't chek for state changes.
parent a9d2dc61
...@@ -348,7 +348,8 @@ idle_event_emitted(void) ...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment