Skip to content

Conversation

@debasisroy144
Copy link
Contributor

With this fix #823 is not happening for us anymore. Not sure though if this has any side effects or not.

client.blpop(client.getKey(self.type + ':jobs'), 0, function( err ) {
if( err || !self.running ) {
self.client.lpush(self.client.getKey(self.type + ':jobs'), 1);
if (self.client.connected) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe if(self.client && self.client.connected) is safer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 agreed.

@behrad behrad merged commit 8fabbda into Automattic:master May 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: LPUSH can't be processed. The connection has already been closed.

2 participants