File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
driver-core/src/main/com/mongodb/internal/connection Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ public InternalConnection get(final OperationContext operationContext) {
210210 @ Override
211211 public void getAsync (final OperationContext operationContext , final SingleResultCallback <InternalConnection > callback ) {
212212 StartTime checkoutStart = connectionCheckoutStarted (operationContext );
213- Timeout maxWaitTimeout = checkoutStart . timeoutAfterOrInfiniteIfNegative ( settings . getMaxWaitTime ( NANOSECONDS ), NANOSECONDS );
213+ Timeout maxWaitTimeout = operationContext . getTimeoutContext (). startWaitQueueTimeout ( checkoutStart );
214214 SingleResultCallback <PooledConnection > eventSendingCallback = (connection , failure ) -> {
215215 SingleResultCallback <InternalConnection > errHandlingCallback = errorHandlingCallback (callback , LOGGER );
216216 if (failure == null ) {
You can’t perform that action at this time.
0 commit comments