fix(mpd): Check m_status before dereferencing it
This bug was introduced in 645a3142a1
Fixes #979
This commit is contained in:
parent
2a056d5b23
commit
26abd0f6c4
2 changed files with 7 additions and 1 deletions
src/modules
|
@ -200,7 +200,7 @@ namespace modules {
|
|||
}
|
||||
}
|
||||
|
||||
if (m_status->match_state(mpdstate::PLAYING)) {
|
||||
if (m_status && m_status->match_state(mpdstate::PLAYING)) {
|
||||
// Always update the status while playing
|
||||
m_status->update(-1, m_mpd.get());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue