src: main: Document a potential panic condition
This commit is contained in:
@@ -75,6 +75,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
StatusMessage { contact: false, .. } => (Some(LolOpenerStatus::Open), "🟢 Le LOL est ouvert :)"),
|
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();
|
let mut current_status = current_status.lock().unwrap();
|
||||||
if new_status != *current_status {
|
if new_status != *current_status {
|
||||||
debug!("Sending msg {}", msg);
|
debug!("Sending msg {}", msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user