Skip to content
Extraits de code Groupes Projets
Valider 14168697 rédigé par Elliu's avatar Elliu
Parcourir les fichiers

MISC: "fix" race condition between qtwindow and mpris modules

parent 0383299b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -209,6 +209,7 @@ impl LektorState {
playstate: Default::default(),
shutdown: RwLock::new(Some(shutdown)),
}));
crate::c_wrapper::init_player_module(ptr.clone(), player)?;
if config.mpris {
*ptr.mpris.write().await =
lektor_mpris::MPRISAdapter::builder("lektord", LektorStateWeakPtr::from(&ptr))
......@@ -218,7 +219,6 @@ impl LektorState {
.map_err(|err| log::error!("can't build mpris server, run with one: {err}"))
.ok();
}
crate::c_wrapper::init_player_module(ptr.clone(), player)?;
Ok(ptr)
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter