1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

chore: minor refactoring

This commit is contained in:
Ruben Bridgewater
2017-05-30 00:44:57 +02:00
parent 0276e15f04
commit 265ce48af4
6 changed files with 50 additions and 40 deletions

View File

@@ -70,7 +70,7 @@ Multi.prototype.monitor = function monitor () {
function quitCallback (client) {
return function (err, res) {
if (client._stream.writable) {
// If the socket is still alive, kill it. This could happen if quit got a NR_CLOSED error code
// If the socket is still alive, destroy it. This could happen if quit got a NR_CLOSED error code
client._stream.destroy()
}
if (err && err.code === 'NR_CLOSED') {