aquatic_ws: network: use HandshakeMachine::new in Connection

This commit is contained in:
Joakim Frostegård 2020-05-15 16:16:03 +02:00
parent 420dcbc717
commit 0eb4039b5e

View file

@ -229,7 +229,7 @@ impl Connection {
) -> Self {
Self {
valid_until,
inner: Either::Right(HandshakeMachine::TcpStream(tcp_stream))
inner: Either::Right(HandshakeMachine::new(tcp_stream))
}
}