diff --git a/src/libstd/rt/io/net/unix.rs b/src/libstd/rt/io/net/unix.rs index e424956e2ff..d9bdb73066d 100644 --- a/src/libstd/rt/io/net/unix.rs +++ b/src/libstd/rt/io/net/unix.rs @@ -243,7 +243,8 @@ fn write_begone() { let mut stop = false; while !stop{ do io_error::cond.trap(|e| { - assert_eq!(e.kind, BrokenPipe); + assert!(e.kind == BrokenPipe || e.kind == NotConnected, + "unknown error {:?}", e); stop = true; }).inside { server.write(buf);