diff --git a/lib/node.js b/lib/node.js index 2dad557..58d35c2 100644 --- a/lib/node.js +++ b/lib/node.js @@ -16,7 +16,7 @@ Socket = Primus.createSocket({ var INSTANCE_NAME, ETH_VERSION; -if(process.env.NODE_ENV == 'production') +if(process.env.NODE_ENV === 'production') { INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output; ETH_VERSION = shelljs.exec('eth -V', {silent: true}).output; @@ -364,7 +364,7 @@ Node.prototype.init = function() Node.prototype.stop = function() { if(this._socket) - socket.end(socket.id); + socket.end(); if(this.updateInterval) clearInterval(this.updateInterval);