From ba0d36dc3fdc1071d44ce621be69db1ddebf64dd Mon Sep 17 00:00:00 2001 From: Unitech Date: Fri, 1 Apr 2016 19:44:01 +0200 Subject: [PATCH] enhancement: connection timeout --- lib/Interactor/PushInteractor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Interactor/PushInteractor.js b/lib/Interactor/PushInteractor.js index d8543d0c..2a39bde4 100644 --- a/lib/Interactor/PushInteractor.js +++ b/lib/Interactor/PushInteractor.js @@ -38,7 +38,7 @@ function setupConnection(host) { client.on('error', function(e) { console.log('[PUSH] Client got error', e.message); // axon does not reconnect on error - self.reconnect(); + that.reconnect(); }); client.on('close', function(e) {