This commit is contained in:
Piotr Korgól 2019-06-17 15:10:14 +02:00
parent d33c4e35c5
commit f460fc5e2a

View File

@ -41,11 +41,9 @@ fn main() {
client.register(comp::Player::new(username, None)); client.register(comp::Player::new(username, None));
let (tx, rx) = mpsc::channel(); let (tx, rx) = mpsc::channel();
thread::spawn(move || { thread::spawn(move || loop {
loop {
let msg = read_input(); let msg = read_input();
tx.send(msg).unwrap(); tx.send(msg).unwrap();
}
}); });
loop { loop {