From cb1ae0e7c0dbad67307ac8e99e988b47a9c3b7d2 Mon Sep 17 00:00:00 2001 From: Leonid Bugaev Date: Tue, 24 Apr 2018 19:42:19 +0300 Subject: [PATCH] Revert "Update middleware.js" This reverts commit 2db143aaef08bce33ff1531b5bc06de468b75c10. --- middleware/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/middleware.js b/middleware/middleware.js index c29b101..2548c7b 100755 --- a/middleware/middleware.js +++ b/middleware/middleware.js @@ -45,7 +45,7 @@ function init() { if (proxy.ch[chanID]) { proxy.ch[chanID].forEach(function(ch){ let r = ch.cb(msg); - if (!r) resp = r; // If one of callback decided not to send response back, do not override it in global callbacks + if (r) resp = r; // If one of callback decided not to send response back, do not override it in global callbacks }) // Cleanup Individual message channels to avoid memory leaks