mirror of
https://github.com/oSumAtrIX/free-librespot.git
synced 2025-12-19 09:54:25 +00:00
* Issue #497 - Playing songs from android app Implement the fix suggested by @Johannesd3 * Fix formatting
This commit is contained in:
parent
4e4557da8d
commit
f83915e212
1 changed files with 5 additions and 1 deletions
|
|
@ -790,7 +790,11 @@ impl SpircTask {
|
|||
}
|
||||
|
||||
MessageType::kMessageTypeNotify => {
|
||||
if self.device.get_is_active() && frame.get_device_state().get_is_active() {
|
||||
if self.device.get_is_active()
|
||||
&& frame.get_device_state().get_is_active()
|
||||
&& self.device.get_became_active_at()
|
||||
<= frame.get_device_state().get_became_active_at()
|
||||
{
|
||||
self.device.set_is_active(false);
|
||||
self.state.set_status(PlayStatus::kPlayStatusStop);
|
||||
self.player.stop();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue