diff --git a/src/socket.io/groups.js b/src/socket.io/groups.js index 0135852f00..8e35d74bca 100644 --- a/src/socket.io/groups.js +++ b/src/socket.io/groups.js @@ -158,7 +158,7 @@ SocketGroups.kick = isOwner(function(socket, data, callback) { groups.ownership.isOwner(data.uid, data.groupName, function(err, isOwner) { if (err) { - callback(err); + return callback(err); } groups.kick(data.uid, data.groupName, isOwner, callback); });