mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
NodeJS is weird with async callbacks.
This commit is contained in:
+1
-1
@@ -286,7 +286,7 @@ function calculatePPLNSPayments(blockHeader) {
|
||||
}
|
||||
cursor.close();
|
||||
txn.abort();
|
||||
callback(null, totalPaid);
|
||||
setImmediate(callback, null, totalPaid);
|
||||
}, function (totalPayment) {
|
||||
blockCheckHeight = blockCheckHeight - 1;
|
||||
debug("Decrementing the block chain check height to:" + blockCheckHeight);
|
||||
|
||||
Reference in New Issue
Block a user