Forgot to make accept() home for IO

This commit is contained in:
Eric Reed 2013-09-06 11:13:08 -07:00
parent 917d3c28b6
commit 73bb4de556

View File

@ -719,7 +719,9 @@ fn socket_name(&mut self) -> Result<SocketAddr, IoError> {
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> {