Skip to content

Commit 1dd16c2

Browse files
committed
DEV-331 fix IllegalStateException in removeSetWaitForDataAll
1 parent 7e0e701 commit 1dd16c2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ShimmerDriver/src/main/java/com/shimmerresearch/driver/BasicProcessWithCallBack.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,7 @@ public void removeSetWaitForDataAll(){
235235
}
236236

237237
mWaitForData = null;
238-
Iterator<WaitForData> entries = mListWaitForData.iterator();
239-
while (entries.hasNext()) {
240-
entries.remove();
241-
}
238+
mListWaitForData.clear();
242239
}
243240

244241
public void setWaitForDataWithSingleInstanceCheck(BasicProcessWithCallBack b){

0 commit comments

Comments
 (0)