Fix debug build

This commit is contained in:
Leith Bade
2014-12-03 22:53:33 +11:00
parent 9db5d2ac55
commit 08ce7157f1
10 changed files with 54 additions and 51 deletions

View File

@@ -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();
}