fix: don't return promise

This commit is contained in:
Barış Soner Uşaklı
2019-07-19 17:02:25 -04:00
parent 44a3352003
commit 2f0a331f02
4 changed files with 10 additions and 9 deletions

View File

@@ -38,7 +38,8 @@ SocketGroups.join = function (socket, data, callback) {
}
if (!meta.config.allowPrivateGroups) {
return groups.join(data.groupName, socket.uid, callback);
groups.join(data.groupName, socket.uid, callback);
return;
}
async.parallel({