I'm facing regularly an issue here https://github.com/feelfreelinux/cspot/blob/fedf7fcefafde024642f9dbdd9591828ac391b32/cspot/src/ChunkedAudioStream.cpp#L8
that happens when the MecuryManager loses connection; In that case, the Player.cpp is stuck in that loop forever (and it consumes all CPU) because the amount of bytes received is never the expected one. It happens a fair bit sometimes (I don't know why the MercuryManager session fails, but it successfully reconnects all the time, except that we are stuck in that loop then).
I'm facing regularly an issue here https://github.com/feelfreelinux/cspot/blob/fedf7fcefafde024642f9dbdd9591828ac391b32/cspot/src/ChunkedAudioStream.cpp#L8 that happens when the MecuryManager loses connection; In that case, the Player.cpp is stuck in that loop forever (and it consumes all CPU) because the amount of bytes received is never the expected one. It happens a fair bit sometimes (I don't know why the MercuryManager session fails, but it successfully reconnects all the time, except that we are stuck in that loop then).