fix transaction wait bug

This commit is contained in:
Kevin Jahns
2015-11-25 16:04:01 +01:00
parent aa2e7fd917
commit 940a44bb7c
3 changed files with 10 additions and 4 deletions

View File

@@ -341,8 +341,12 @@ module.exports = function (Y) {
}
}
requestTransaction (makeGen, callImmediately) {
if (callImmediately) {
this.transact(makeGen)
if (callImmediately || true) {
this.waitingTransactions.push(makeGen)
if (!this.transactionInProgress) {
this.transactionInProgress = true
this.transact(this.getNextRequest())
}
} else {
this.waitingTransactions.push(makeGen)
if (!this.transactionInProgress) {