Skip to content

Commit ace8ee1

Browse files
author
EspressoTrip-v2
committed
Check soccket length
1 parent c1cee88 commit ace8ee1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mongoPatch.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export function useProxyForMongo(config: Config) {
2424
};
2525
return {
2626
close: async () => {
27+
console.log(`Closing ${sockets.length} open proxy sockets`);
2728
for (const socket of sockets) {
2829
await new Promise((resolve, reject) => {
2930
socket.once('close', () => resolve);

0 commit comments

Comments
 (0)