mirror of
https://gitlab.redox-os.org/CoffeeCode/redox-ssh.git
synced 2025-12-28 22:32:18 +01:00
Remove threading for now
This commit is contained in:
parent
ba376a9add
commit
cf7644a5ed
1 changed files with 5 additions and 9 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
use std::net::TcpListener;
|
use std::net::TcpListener;
|
||||||
use std::thread;
|
|
||||||
|
|
||||||
use connection::{Connection, ConnectionType};
|
use connection::{Connection, ConnectionType};
|
||||||
use packet::Packet;
|
use packet::Packet;
|
||||||
|
|
@ -37,15 +36,12 @@ impl Server {
|
||||||
|
|
||||||
println!("Incoming connection from {}", addr);
|
println!("Incoming connection from {}", addr);
|
||||||
|
|
||||||
thread::spawn(move || {
|
|
||||||
let mut connection = Connection::new(
|
let mut connection = Connection::new(
|
||||||
ConnectionType::Server,
|
ConnectionType::Server,
|
||||||
stream.try_clone().unwrap(),
|
stream.try_clone().unwrap(),
|
||||||
);
|
);
|
||||||
|
|
||||||
connection.run(&mut stream);
|
connection.run(&mut stream);
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue