Commit 8c911fec authored by Thomas Gatzweiler's avatar Thomas Gatzweiler
Browse files

Don't use TcpStream::try_clone for now

parent 743cb40e
This diff is collapsed.
......@@ -32,14 +32,10 @@ impl Server {
debug!("Incoming connection from {}", addr);
thread::spawn(move || {
let mut read_stream = stream.try_clone().unwrap();
let mut connection =
Connection::new(ConnectionType::Server(config));
let mut connection = Connection::new(
ConnectionType::Server(config),
Box::new(stream),
);
let result = connection.run(&mut read_stream);
let result = connection.run(stream);
if let Some(error) = result.err() {
println!("sshd: {}", error)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment