private void displayUsersConnected(Users users, NetworkStream stream) { users.UserNameStartup(); lock (lockDict) { if (!connectedUsers.ContainsKey(users.UserId)) { connectedUsers.Add(client.UserId, client); showOnConsoleUsers(client); Thread startUser = new Thread(() => client.ReceiveUsers(connectedUsers)); startUser.Start(); } } }