Skip to content

Commit

Permalink
A bit
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdoe-jr committed May 31, 2021
1 parent 6ccba46 commit af58369
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ struct Arguments {
fn main() {
let args = Arguments::from_args();
let stdin = spawn_stdin_channel();
let (cmd_send, msg_recv) = lib::EconConnection::connect(args.address.parse::<std::net::SocketAddr>().unwrap(), args.password, String::from(":q!"));
let (cmd, msg) = lib::EconConnection::connect(args.address.parse::<std::net::SocketAddr>().unwrap(), args.password, String::from(":q!"));

loop {
if let Ok(msg) = msg_recv.try_recv() {
if let Ok(msg) = msg.try_recv() {
if args.standard {
println!("{}", msg.to_string());
}
Expand All @@ -30,7 +30,7 @@ fn main() {
}

if let Ok(received) = stdin.try_recv() {
let _ = cmd_send.send(received);
let _ = cmd.send(received);
}
}
}
Expand Down

0 comments on commit af58369

Please sign in to comment.