Skip to content

Commit

Permalink
Remove infinite loop from reg domain example
Browse files Browse the repository at this point in the history
  • Loading branch information
ollipa committed Jan 27, 2024
1 parent 97ecd82 commit 0f700ce
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions examples/print_reg_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ fn main() {
.unwrap();

let socket = NlSocket::connect().unwrap();
loop {
let domains = socket.get_regulatory_domain().unwrap();
for domain in domains {
println!("{domain:#?}");
}
let domains = socket.get_regulatory_domain().unwrap();
for domain in domains {
println!("{domain:#?}");
}
}

0 comments on commit 0f700ce

Please sign in to comment.