We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d82a603 commit eb24128Copy full SHA for eb24128
driver-core/src/main/com/mongodb/internal/connection/tlschannel/async/AsynchronousTlsChannelGroup.java
@@ -121,7 +121,9 @@ class RegisteredSocket {
121
public void close() {
122
doCancelRead(this, null);
123
doCancelWrite(this, null);
124
- key.cancel();
+ if (key != null) {
125
+ key.cancel();
126
+ }
127
currentRegistrations.getAndDecrement();
128
/*
129
* Actual de-registration from the selector will happen asynchronously.
0 commit comments