summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Broto <ebroto@tutanota.com>2019-12-20 20:27:55 +0100
committerEduardo Broto <ebroto@tutanota.com>2019-12-20 20:27:55 +0100
commitd2a9434f157cbcc6ecfa37988c4951563f30fbf4 (patch)
treed50e13aec244aa3bee142a0d55a0553e7fa861c9
parent642de57628b28558c02cddd775a4c9a022cba535 (diff)
docs(interfaces): Add a comment explaining break with label syntax
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 34cc09c..26d4e14 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -208,6 +208,7 @@ where
network_utilization.lock().unwrap().update(segment);
}
if !running.load(Ordering::Acquire) {
+ // Break from the outer loop and finish the thread
break 'sniffing;
}
}