Skip to content
This repository has been archived by the owner on Dec 30, 2019. It is now read-only.

fix for cases where connection is broken and release() is called, avo… #118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ function release (client, err) {
}, this.options.idleTimeoutMillis)
}

this._idle.push(new IdleItem(client, tid))
if (this._clients.indexOf(client) > -1) {
this._idle.push(new IdleItem(client, tid))
}
this._pulseQueue()
}

Expand Down