More deprecated function cleanup

This commit is contained in:
Steven Fackler 2016-02-08 23:20:19 -08:00
parent e3e4aa4472
commit 643a4a58c9
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ impl Server {
// Need to wait for the UDP socket to get bound in our child process, // Need to wait for the UDP socket to get bound in our child process,
// but don't currently have a great way to do that so just wait for a // but don't currently have a great way to do that so just wait for a
// bit. // bit.
thread::sleep_ms(100); thread::sleep(Duration::from_millis(100));
let socket = UdpSocket::bind(next_addr()).unwrap(); let socket = UdpSocket::bind(next_addr()).unwrap();
socket.connect(&addr).unwrap(); socket.connect(&addr).unwrap();
(s, UdpConnected(socket)) (s, UdpConnected(socket))