From 0a38a783c7ab4cc84b94051daf2f75589860891c Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 4 Nov 2014 18:59:26 -0500 Subject: [PATCH] TravisCI is TOO DAMN FAST --- src/groups.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/groups.js b/src/groups.js index 173274020d..899dfd55b7 100644 --- a/src/groups.js +++ b/src/groups.js @@ -459,10 +459,11 @@ var async = require('async'), }); } else { Groups.create(groupName, '', function(err) { - if (err) { + if (err && err.message !== '[[error:group-already-exists]]') { winston.error('[groups.join] Could not create new hidden group: ' + err.message); return callback(err); } + Groups.hide(groupName); db.setAdd('group:' + groupName + ':members', uid, callback); plugins.fireHook('action:groups.join', {