Skip to content

Commit

Permalink
Merge pull request #730 from snyk/fix/avoid-crashing-on-handleConnect…
Browse files Browse the repository at this point in the history
…ionClose

fix: avoid crash on closehandler
  • Loading branch information
aarlaud authored Mar 5, 2024
2 parents 26e0e98 + c581557 commit 3154e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server/socketHandlers/closeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const handleConnectionCloseOnSocket = (
closeReason,
maskedToken,
hashedToken,
remainingConnectionsCount: clientPool.length,
remainingConnectionsCount: clientPool?.length || 0,
},
'client connection closed',
);
Expand Down

0 comments on commit 3154e42

Please sign in to comment.