client: fix an issue not clearing userlist on exit

This commit is contained in:
mappu 2016-10-08 16:30:54 +13:00
parent a5db3c94c7
commit aaa0782103

View File

@ -230,7 +230,7 @@ var userlist = {
var userlist = userlists[i]; var userlist = userlists[i];
var users = userlist.children; var users = userlist.children;
for (var j = 0; j < users.length; j++) { for (var j = users.length; j --> 0;) {
userlist.removeChild(users[j]); userlist.removeChild(users[j]);
} }
} }