From 2c9aa9d30d3b833954b4fa584293e6e5a817f102 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Mon, 25 Nov 2013 18:57:36 +0000 Subject: PG: don't try to commit after rolling back --- diff --git a/backend/node/src/clipperz.js b/backend/node/src/clipperz.js index 6c13f16..6bf56bb 100644 --- a/backend/node/src/clipperz.js +++ b/backend/node/src/clipperz.js @@ -66,7 +66,7 @@ var CLIPPERZ = module.exports = function(CONFIG) { return (this.over=true),C.query('ROLLBACK',function(e){D();cb&&cb(e)}); }, end: function(e,cb) { - if(e) LOGGER.trace(e,"rolling back transaction due to an error"),this.rollback(cb); + if(e) return LOGGER.trace(e,"rolling back transaction due to an error"),this.rollback(cb); this.commit(cb); } }); -- cgit v0.9.0.2