File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -322,8 +322,8 @@ export class Server extends TypedEventEmitter<ServerEvents> {
322
322
try {
323
323
conn = await this . pool . checkOut ( ) ;
324
324
} catch ( checkoutError ) {
325
- if ( ! ( checkoutError instanceof PoolClearedError ) ) this . handleError ( checkoutError ) ;
326
325
this . decrementOperationCount ( ) ;
326
+ if ( ! ( checkoutError instanceof PoolClearedError ) ) this . handleError ( checkoutError ) ;
327
327
throw checkoutError ;
328
328
}
329
329
}
@@ -346,9 +346,9 @@ export class Server extends TypedEventEmitter<ServerEvents> {
346
346
throw operationError ;
347
347
}
348
348
} finally {
349
+ this . decrementOperationCount ( ) ;
349
350
if ( ! connShouldBePinned ) {
350
351
this . pool . checkIn ( conn ) ;
351
- this . decrementOperationCount ( ) ;
352
352
}
353
353
}
354
354
}
You can’t perform that action at this time.
0 commit comments