diff options
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/uv/file.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/rt/uv/file.rs b/src/libstd/rt/uv/file.rs index 32e248254f4..850b28718d0 100644 --- a/src/libstd/rt/uv/file.rs +++ b/src/libstd/rt/uv/file.rs @@ -183,8 +183,9 @@ impl FsRequest { // accessors/utility funcs fn sync_cleanup(self, result: c_int) -> Result<c_int, UvError> { + let loop_ = self.get_loop().native_handle(); self.cleanup_and_delete(); - match status_to_maybe_uv_error(result as i32) { + match status_to_maybe_uv_error_with_loop(loop_,result as i32) { Some(err) => Err(err), None => Ok(result) } |
