From cf01cce4439f83b13316f2c9376ff18bb37b236b Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Sun, 26 Feb 2017 15:18:17 -0800 Subject: [PATCH] Fix bug when calling commit before declare --- lib/session.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session.coffee b/lib/session.coffee index 96e3ecd..69cba9d 100644 --- a/lib/session.coffee +++ b/lib/session.coffee @@ -602,7 +602,7 @@ rpcRequest = (sessionContext, _declarations, callback) -> return rpcRequest(sessionContext, null, callback) ) - if not sessionContext.declarations[0].length + if sessionContext.doneProvisions[0] & 1 return callback() if sessionContext.rpcCount >= 255 or