mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +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 => {
|
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.device.set_is_active(false);
|
||||||
self.state.set_status(PlayStatus::kPlayStatusStop);
|
self.state.set_status(PlayStatus::kPlayStatusStop);
|
||||||
self.player.stop();
|
self.player.stop();
|
||||||
|
|
Loading…
Reference in a new issue