Skip to content

Commit 4346f9a

Browse files
committed
Removed unnecessary checks for a closed MongoClient/DBTCPConnector that caused
some operations to throws IllegalStateException even after completing successfully JAVA-1581
1 parent 9884550 commit 4346f9a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/com/mongodb/DBTCPConnector.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ public void requestStart(){
115115
*/
116116
@Override
117117
public void requestDone(){
118-
isTrue("open", !_closed);
119118
_myPort.requestDone();
120119
}
121120

@@ -203,8 +202,6 @@ public WriteResult execute() throws IOException {
203202
}
204203

205204
<T> T doOperation(final DB db, final DBPort port, final DBPort.Operation<T> operation){
206-
isTrue("open", !_closed);
207-
208205
try {
209206
port.checkAuth( db.getMongo() );
210207
return operation.execute();
@@ -410,7 +407,6 @@ DBPort getPrimaryPort() {
410407
}
411408

412409
void releasePort(final DBPort port) {
413-
isTrue("open", !_closed);
414410
_myPort.done(port);
415411
}
416412

0 commit comments

Comments
 (0)