Fix debug build
This commit is contained in:
@@ -15,7 +15,7 @@ FileRequest::FileRequest(const std::string &path_, uv_loop_t *loop)
|
||||
}
|
||||
|
||||
void FileRequest::cancel() {
|
||||
assert(thread_id == uv_thread_self());
|
||||
assert(uv_thread_self() == threadId);
|
||||
|
||||
if (ptr) {
|
||||
ptr->cancel();
|
||||
@@ -30,7 +30,7 @@ void FileRequest::cancel() {
|
||||
}
|
||||
|
||||
FileRequest::~FileRequest() {
|
||||
assert(thread_id == uv_thread_self());
|
||||
assert(uv_thread_self() == threadId);
|
||||
cancel();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user