Fix array splice error in profile module

This commit is contained in:
yflory 2024-08-19 12:53:48 +02:00
parent 6f8547235e
commit a8c3e7f4a7

View File

@ -111,7 +111,7 @@ define([
var removeClient = function (ctx, cId) {
var idx = ctx.clients.indexOf(cId);
ctx.clients.splice(idx, 1);
if (idx !== -1) { ctx.clients.splice(idx, 1); }
};
Profile.init = function (cfg, waitFor, emit) {