Skip to content

Commit 80af4e9

Browse files
fix(cluster): fix count in fetchSockets() method
Related: socketio/socket.io-redis-adapter@bd32763
1 parent b2d3695 commit 80af4e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cluster-adapter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ export abstract class ClusterAdapter extends Adapter {
509509
]);
510510
const expectedResponseCount = serverCount - 1;
511511

512-
if (opts.flags?.local || expectedResponseCount === 0) {
512+
if (opts.flags?.local || expectedResponseCount <= 0) {
513513
return localSockets;
514514
}
515515

0 commit comments

Comments
 (0)