From 59fd335a03055ea98243abb7826f43365b5d5ae2 Mon Sep 17 00:00:00 2001 From: jshkurti Date: Mon, 4 May 2015 16:27:49 +0200 Subject: [PATCH] fix reverseActions --- lib/Interactor/ReverseInteractor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Interactor/ReverseInteractor.js b/lib/Interactor/ReverseInteractor.js index 1f8f07c2..7694fe12 100644 --- a/lib/Interactor/ReverseInteractor.js +++ b/lib/Interactor/ReverseInteractor.js @@ -188,8 +188,9 @@ var ReverseInteract = module.exports = { return cb(new Error('method %s not allowed')); } - pm2.remote(method_name, parameters, cb); - + pm2.connect(function() { + pm2.remote(method_name, parameters, cb); + }); return false; };