Skip to content

Commit 499e97a

Browse files
committed
Merge branch 'ouotuo-master'
2 parents 2e099a0 + c6ff907 commit 499e97a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,14 @@ RedisClient.prototype.pub_sub_command = function (command_obj) {
916916

917917
RedisClient.prototype.end = function () {
918918
this.stream._events = {};
919+
920+
//clear retry_timer
921+
if(this.retry_timer){
922+
clearTimeout(this.retry_timer);
923+
this.retry_timer=null;
924+
}
925+
this.stream.on("error", function(){});
926+
919927
this.connected = false;
920928
this.ready = false;
921929
this.closing = true;

0 commit comments

Comments
 (0)