summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 872a1f7..5ddb078 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -9,6 +9,7 @@ use std::thread;
use std::sync::mpsc;
mod cli;
+mod upnp;
fn main() {
let app = App::new(env!("CARGO_PKG_NAME"))
@@ -42,8 +43,11 @@ fn main() {
process::exit(1);
}
- let (tx, rx) = mpsc::channel();
+ let _udp = thread::spawn(move || {
+ upnp::discover();
+ });
+ let (tx, rx) = mpsc::channel();
let child = thread::spawn(move || {
let mut controller = cli::Controller::init();
loop {