mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
We were chasing a red herring
It should actually be perfectly ok to send `noidle` before the call to `recv_idle`. It just means the `recv_idle` will return immediately.
This commit is contained in:
parent
cacb0b0124
commit
f22b5b022c
@ -34,8 +34,6 @@ extension MPDClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// noIdle could happen here which will crash
|
|
||||||
|
|
||||||
if shouldIdle {
|
if shouldIdle {
|
||||||
let result = mpd_recv_idle(connection, true)
|
let result = mpd_recv_idle(connection, true)
|
||||||
handleIdleResult(result)
|
handleIdleResult(result)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user