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));
let (tx, rx) = mpsc::channel();
thread::spawn(move || {
loop {
let msg = read_input();
tx.send(msg).unwrap();
}
thread::spawn(move || loop {
let msg = read_input();
tx.send(msg).unwrap();
});
loop {