Revert "Update middleware.js"

This reverts commit 2db143aaef.
This commit is contained in:
Leonid Bugaev
2018-04-24 19:42:37 +03:00
parent 2db143aaef
commit cb1ae0e7c0
+1 -1
View File
@@ -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