Skip to content

Commit 73bb4de

Browse files
committed
Forgot to make accept() home for IO
1 parent 917d3c2 commit 73bb4de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/rt/uv/uvio.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,9 @@ impl RtioSocket for UvTcpAcceptor {
719719

720720
impl RtioTcpAcceptor for UvTcpAcceptor {
721721
fn accept(&mut self) -> Result<~RtioTcpStreamObject, IoError> {
722-
self.incoming.recv()
722+
do self.home_for_io |self_| {
723+
self_.incoming.recv()
724+
}
723725
}
724726

725727
fn accept_simultaneously(&mut self) -> Result<(), IoError> {

0 commit comments

Comments
 (0)