1
1
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:
Daniel Barber 2020-02-15 21:28:52 -05:00
parent cacb0b0124
commit f22b5b022c
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -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)