Update ControlGroup.java

This commit is contained in:
GoToLoop 2016-07-17 11:29:45 -03:00 committed by GitHub
parent 4eadb2236d
commit 4b8a8368ca

View File

@ -74,7 +74,7 @@ public class ControlGroup< T extends ControlGroup< T > > extends ControllerGroup
if ( !isEventActive ) return; if ( !isEventActive ) return;
final ControlEvent myEvent = new ControlEvent( this ); final ControlEvent myEvent = new ControlEvent( this );
cp5.getControlBroadcaster( ).broadcast( myEvent , METHOD ); cp5.getControlBroadcaster( ).broadcast( myEvent , METHOD );
if ( !_myControlListener.isEmpty( ) ) synchronized ( _myControlListener ) { synchronized ( _myControlListener ) {
for ( final ControlListener cl : _myControlListener ) cl.controlEvent( myEvent ); for ( final ControlListener cl : _myControlListener ) cl.controlEvent( myEvent );
} }
} }