avoid relaying changes if theres no one listening to the passthrough
This commit is contained in:
+1
-1
@@ -262,7 +262,7 @@ public class NetworkMonitor<T extends IAEStack<T>> implements IMEMonitor<T>
|
||||
{
|
||||
final Entry<IMEMonitorHandlerReceiver<T>, Object> o = i.next();
|
||||
final IMEMonitorHandlerReceiver<T> receiver = o.getKey();
|
||||
if( receiver.isValid( o.getValue() ) )
|
||||
if( receiver.isValid( o.getValue() ) && receiver.hasListeners() )
|
||||
{
|
||||
receiver.postChange( this, diff, src );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user