Skip to content

Commit 0c6bbc9

Browse files
committed
fix for b01f177
1 parent b01f177 commit 0c6bbc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client/lib/client/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,11 +857,11 @@ export default class RedisClient<
857857
const maybeClose = () => {
858858
if (!this._queue.isEmpty()) return;
859859

860-
this._socket.removeEventListener('data', maybeClose);
860+
this._socket.off('data', maybeClose);
861861
this._socket.destroySocket();
862862
resolve();
863863
};
864-
this._socket.addEventListener('data', maybeClose);
864+
this._socket.on('data', maybeClose);
865865
});
866866
}
867867

0 commit comments

Comments
 (0)