mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
fs, handle_wrap: use Loop(), not uv_default_loop()
Using the default loop will fail in unexpected and interesting ways when isolates are used.
This commit is contained in:
1 parent
2156e5eca1
commit
4e5247772d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -89,7 +89,7 @@ Handle<Value> HandleWrap::Ref(const Arguments& args) {
|
||||
}
|
||||
|
||||
wrap->unref = false;
|
||||
uv_ref(uv_default_loop());
|
||||
uv_ref(Loop());
|
||||
|
||||
return v8::Undefined();
|
||||
}
|
||||
|
||||
+1
-1
@@ -234,7 +234,7 @@ struct fs_req_wrap {
|
||||
uv_fs_t* req = &req_wrap->req_; \
|
||||
req->result = r; \
|
||||
req->path = NULL; \
|
||||
req->errorno = uv_last_error(uv_default_loop()).code; \
|
||||
req->errorno = uv_last_error(Loop()).code; \
|
||||
After(req); \
|
||||
} \
|
||||
return scope.Close(req_wrap->object_);
|
||||
|
||||
Reference in new issue
Block a user