when polling. do not do reads in _after.

This commit is contained in:
Christopher Jeffrey 2014-09-30 16:17:29 -07:00
parent 2caedcd812
commit dd698b2374
1 changed files with 1 additions and 0 deletions

View File

@ -894,6 +894,7 @@ async_poll_blocks_after(uv_work_t *req) {
CBlockIndex *pindex = chainActive[i];
if (pindex != NULL) {
CBlock block;
// XXX Move this to async_poll_blocks!
if (ReadBlockFromDisk(block, pindex)) {
Local<Object> obj = NanNew<Object>();
cblock_to_jsblock(block, pindex, obj);