Skip to content

Commit

Permalink
Break outer loop on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Jan 15, 2025
1 parent a3b9f4a commit 2f8b1ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ pub async fn monitor(


// Main loop, receive any produced event and write it into the events log.
loop {
'processor: loop {
for message in &rx {
match message {
Ok(event) => {
Expand All @@ -198,7 +198,7 @@ pub async fn monitor(
};
if plain_path == "DISCONNECT" {
info!("Received exit signal, exiting...");
break;
break 'processor;
}

let event_path = Path::new(plain_path);
Expand Down

0 comments on commit 2f8b1ab

Please sign in to comment.