Remove a bit of synchronization

This commit is contained in:
md_5 2014-02-09 11:02:26 +11:00
parent 9a4f0a6f59
commit b5216148d6
3 changed files with 5 additions and 5 deletions

View File

@ -41,13 +41,13 @@ public class ServerConnection implements Server
}
@Override
public synchronized void disconnect(String reason)
public void disconnect(String reason)
{
disconnect( TextComponent.fromLegacyText( reason ) );
}
@Override
public void disconnect(BaseComponent... reason)
public synchronized void disconnect(BaseComponent... reason)
{
if ( !ch.isClosed() )
{

View File

@ -273,7 +273,7 @@ public final class UserConnection implements ProxiedPlayer
}
@Override
public synchronized void disconnect(String reason)
public void disconnect(String reason)
{
disconnect0( TextComponent.fromLegacyText( reason ) );
}

View File

@ -34,7 +34,7 @@ public class ChannelWrapper
ch.pipeline().get( MinecraftEncoder.class ).setProtocolVersion( protocol );
}
public synchronized void write(Object packet)
public void write(Object packet)
{
if ( !closed )
{
@ -50,7 +50,7 @@ public class ChannelWrapper
}
}
public synchronized void close()
public void close()
{
if ( !closed )
{