Skip to content

Commit 1ffbfc7

Browse files
committed
skipping the iterable to avoidconcurrant modification
1 parent 2128da9 commit 1ffbfc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javasdk/NRSDK/src/com/neuronrobotics/sdk/dyio/DyIOChannel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ protected void fireChannelEvent(DyIOChannelEvent e) {
323323
Log.info("Value is not the same, last was: "+getPreviousValue()+" current: "+value);
324324
}
325325
setPreviousValue(value);
326-
for(IChannelEventListener l : listeners) {
327-
l.onChannelEvent(e);
326+
for(int i=0;i<listeners.size();i++) {
327+
listeners.get(i).onChannelEvent(e);
328328
}
329329
}
330330

0 commit comments

Comments
 (0)