Remove a bit of synchronization
This commit is contained in:
parent
9a4f0a6f59
commit
b5216148d6
@ -41,13 +41,13 @@ public class ServerConnection implements Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void disconnect(String reason)
|
public void disconnect(String reason)
|
||||||
{
|
{
|
||||||
disconnect( TextComponent.fromLegacyText( reason ) );
|
disconnect( TextComponent.fromLegacyText( reason ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void disconnect(BaseComponent... reason)
|
public synchronized void disconnect(BaseComponent... reason)
|
||||||
{
|
{
|
||||||
if ( !ch.isClosed() )
|
if ( !ch.isClosed() )
|
||||||
{
|
{
|
||||||
|
@ -273,7 +273,7 @@ public final class UserConnection implements ProxiedPlayer
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void disconnect(String reason)
|
public void disconnect(String reason)
|
||||||
{
|
{
|
||||||
disconnect0( TextComponent.fromLegacyText( reason ) );
|
disconnect0( TextComponent.fromLegacyText( reason ) );
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ public class ChannelWrapper
|
|||||||
ch.pipeline().get( MinecraftEncoder.class ).setProtocolVersion( protocol );
|
ch.pipeline().get( MinecraftEncoder.class ).setProtocolVersion( protocol );
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void write(Object packet)
|
public void write(Object packet)
|
||||||
{
|
{
|
||||||
if ( !closed )
|
if ( !closed )
|
||||||
{
|
{
|
||||||
@ -50,7 +50,7 @@ public class ChannelWrapper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized void close()
|
public void close()
|
||||||
{
|
{
|
||||||
if ( !closed )
|
if ( !closed )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user