From 220b42706f0288782bf5db1a10e8059b8d863e86 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 15 May 2015 14:14:20 -0400 Subject: [PATCH] adding a check so that websocket method in notif pushing isn't called if the socket server isn't initialised --- src/notifications.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/notifications.js b/src/notifications.js index 3aafdb346d..67d7b68695 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -197,8 +197,10 @@ var async = require('async'), plugins.fireHook('action:notification.pushed', {notification: notification, uids: uids}); var websockets = require('./socket.io'); - for(var i=0; i