Update BukkitTelnetBridge.java

This commit is contained in:
Telesphoreo 2020-11-08 19:26:52 -06:00
parent 8ac5bc827a
commit 11984bc46f

View File

@ -148,10 +148,8 @@ public class BukkitTelnetBridge extends FreedomService
final BukkitTelnet telnet = getBukkitTelnetPlugin();
if (telnet != null)
{
final Iterator<ClientSession> it = telnet.appender.getSessions().iterator();
while (it.hasNext())
for (ClientSession session : telnet.appender.getSessions())
{
final ClientSession session = it.next();
if (name != null && name.equalsIgnoreCase(session.getUserName()))
{
sessionsToRemove.add(session);