Skip to content

Commit 6e06585

Browse files
jstewart148jyemin
authored andcommitted
AbstractSubscription#onError must call the onError method of the observer
JAVARS-216
1 parent 234532c commit 6e06585

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

driver-async/src/main/com/mongodb/async/client/MongoIterableSubscription.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,12 @@ boolean checkCompleted() {
6565

6666
@Override
6767
void postTerminate() {
68-
if (batchCursor != null) {
69-
batchCursor.close();
68+
try {
69+
if (batchCursor != null) {
70+
batchCursor.close();
71+
}
72+
} catch (Exception e) {
73+
// do nothing
7074
}
7175
}
7276

0 commit comments

Comments
 (0)