File tree 2 files changed +3
-1
lines changed
driver-core/src/main/com/mongodb/internal/operation
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -552,6 +552,7 @@ class ProcessCommandsCallback implements SingleResultCallback<Void> {
552
552
public void onResult (final Void result , final Throwable t ) {
553
553
if (t != null ) {
554
554
finalCallback .onResult (null , t );
555
+ return ;
555
556
}
556
557
Function <ConnectionDescription , BsonDocument > nextCommandFunction = commands .poll ();
557
558
if (nextCommandFunction == null ) {
Original file line number Diff line number Diff line change 19
19
import com .mongodb .MongoCommandException ;
20
20
import com .mongodb .MongoNamespace ;
21
21
import com .mongodb .WriteConcern ;
22
- import com .mongodb .internal .async .SingleResultCallback ;
23
22
import com .mongodb .connection .ConnectionDescription ;
23
+ import com .mongodb .internal .async .SingleResultCallback ;
24
24
import com .mongodb .internal .binding .AsyncReadWriteBinding ;
25
25
import com .mongodb .internal .binding .AsyncWriteBinding ;
26
26
import com .mongodb .internal .binding .ReadWriteBinding ;
@@ -264,6 +264,7 @@ class ProcessCommandsCallback implements SingleResultCallback<Void> {
264
264
public void onResult (final Void result , final Throwable t ) {
265
265
if (t != null && !isNamespaceError (t )) {
266
266
finalCallback .onResult (null , t );
267
+ return ;
267
268
}
268
269
Function <ConnectionDescription , BsonDocument > nextCommandFunction = commands .poll ();
269
270
if (nextCommandFunction == null ) {
You can’t perform that action at this time.
0 commit comments