[#582] Widen synchronized block for packet queue.
This commit is contained in:
		| @@ -89,13 +89,13 @@ public class BungeeServerInfo implements ServerInfo | |||||||
|         Preconditions.checkNotNull( channel, "channel" ); |         Preconditions.checkNotNull( channel, "channel" ); | ||||||
|         Preconditions.checkNotNull( data, "data" ); |         Preconditions.checkNotNull( data, "data" ); | ||||||
|  |  | ||||||
|         Server server = ( players.isEmpty() ) ? null : players.iterator().next().getServer(); |         synchronized ( packetQueue ) | ||||||
|         if ( server != null ) |  | ||||||
|         { |         { | ||||||
|             server.sendData( channel, data ); |             Server server = ( players.isEmpty() ) ? null : players.iterator().next().getServer(); | ||||||
|         } else |             if ( server != null ) | ||||||
|         { |             { | ||||||
|             synchronized ( packetQueue ) |                 server.sendData( channel, data ); | ||||||
|  |             } else | ||||||
|             { |             { | ||||||
|                 packetQueue.add( new PacketFAPluginMessage( channel, data ) ); |                 packetQueue.add( new PacketFAPluginMessage( channel, data ) ); | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 md_5
					md_5