Skip to content

Commit

Permalink
Merge 553c6ea into 7322ea7
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Sep 6, 2016
2 parents 7322ea7 + 553c6ea commit a24aa6b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/async.h
Expand Up @@ -36,11 +36,6 @@ template <class Item, class Parent> class Async {
rows.swap(async->data);
NODE_SQLITE3_MUTEX_UNLOCK(&async->mutex)
for (unsigned int i = 0, size = rows.size(); i < size; i++) {
#if NODE_VERSION_AT_LEAST(0, 7, 9)
uv_unref((uv_handle_t *)&async->watcher);
#else
uv_unref(uv_default_loop());
#endif
async->callback(async->parent, rows[i]);
}
}
Expand All @@ -61,12 +56,6 @@ template <class Item, class Parent> class Async {
}

void add(Item* item) {
// Make sure node runs long enough to deliver the messages.
#if NODE_VERSION_AT_LEAST(0, 7, 9)
uv_ref((uv_handle_t *)&watcher);
#else
uv_ref(uv_default_loop());
#endif
NODE_SQLITE3_MUTEX_LOCK(&mutex);
data.push_back(item);
NODE_SQLITE3_MUTEX_UNLOCK(&mutex)
Expand Down

0 comments on commit a24aa6b

Please sign in to comment.