Skip to content

Commit

Permalink
Forgot to make accept() home for IO
Browse files Browse the repository at this point in the history
  • Loading branch information
anasazi committed Sep 6, 2013
1 parent 917d3c2 commit 73bb4de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libstd/rt/uv/uvio.rs
Expand Up @@ -719,7 +719,9 @@ impl RtioSocket for UvTcpAcceptor {

impl RtioTcpAcceptor for UvTcpAcceptor {
fn accept(&mut self) -> Result<~RtioTcpStreamObject, IoError> {
self.incoming.recv()
do self.home_for_io |self_| {
self_.incoming.recv()
}
}

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

0 comments on commit 73bb4de

Please sign in to comment.