From 172566a76975e66a540a0462fe1e75941e1ff79b Mon Sep 17 00:00:00 2001 From: Pierre Moreau Date: Tue, 3 Feb 2015 08:02:20 -0800 Subject: [PATCH] Aphlict - fix incrementation of _messagesIn Summary: Ref T7124. The local version of `this` in the handler of 'end' was incremented rather than the global one. Test Plan: Sending test notifications did not increment the `messages.in` value before this patch even if it should have. With the patch sending test notifications does increment `messages.in`. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7124 Differential Revision: https://secure.phabricator.com/D11648 --- support/aphlict/server/lib/AphlictAdminServer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/aphlict/server/lib/AphlictAdminServer.js b/support/aphlict/server/lib/AphlictAdminServer.js index 55a1e15e4e..5ca05cb392 100644 --- a/support/aphlict/server/lib/AphlictAdminServer.js +++ b/support/aphlict/server/lib/AphlictAdminServer.js @@ -55,7 +55,7 @@ JX.install('AphlictAdminServer', { self.getLogger().log( 'Received notification: ' + JSON.stringify(msg)); - ++this._messagesIn; + ++self._messagesIn; try { self._transmit(msg);