mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-04-10 05:15:02 +00:00
linux-rust: fix conv detect
This commit is contained in:
@@ -913,7 +913,7 @@ impl MediaController {
|
|||||||
debug!("No stored original volume to restore to on status 6");
|
debug!("No stored original volume to restore to on status 6");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
9 => {
|
7 => {
|
||||||
let mut maybe_original = None;
|
let mut maybe_original = None;
|
||||||
{
|
{
|
||||||
let mut state = self.state.lock().await;
|
let mut state = self.state.lock().await;
|
||||||
@@ -922,7 +922,7 @@ impl MediaController {
|
|||||||
state.conv_original_volume = None;
|
state.conv_original_volume = None;
|
||||||
state.conv_conversation_started = false;
|
state.conv_conversation_started = false;
|
||||||
} else {
|
} else {
|
||||||
debug!("Received status 9 but conversation was not started; ignoring restore");
|
debug!("Received status 7 but conversation was not started; ignoring restore");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -931,9 +931,9 @@ impl MediaController {
|
|||||||
tokio::task::spawn_blocking(move || {
|
tokio::task::spawn_blocking(move || {
|
||||||
transition_sink_volume(&sink_clone, orig)
|
transition_sink_volume(&sink_clone, orig)
|
||||||
}).await.unwrap_or(false);
|
}).await.unwrap_or(false);
|
||||||
info!("Conversation end (9): restored volume to original {}", orig);
|
info!("Conversation end (7): restored volume to original {}", orig);
|
||||||
} else {
|
} else {
|
||||||
debug!("No stored original volume to restore to on status 9");
|
debug!("No stored original volume to restore to on status 7");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|||||||
Reference in New Issue
Block a user