diff --git a/src/main.rs b/src/main.rs index ae7d0c9..44439c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,6 +75,7 @@ async fn main() -> anyhow::Result<()> { StatusMessage { contact: false, .. } => (Some(LolOpenerStatus::Open), "🟢 Le LOL est ouvert :)"), }; + //XXX: Panic if the lock is poisoned (why would that happen?) let mut current_status = current_status.lock().unwrap(); if new_status != *current_status { debug!("Sending msg {}", msg);