basho / riak-nodejs-client

The Riak client for Node.js.
Apache License 2.0
72 stars 29 forks source link

Avoid TypeError: Cannot read property 'name' of undefined #167

Closed adamoonact closed 8 years ago

adamoonact commented 8 years ago

This should fix this:

TypeError: Cannot read property 'name' of undefined at RiakNode._connectionClosed (/home/ec2-user/gameserver/node_modules/basho-riak-client/lib/core/riaknode.js:565:27) at emitTwo (events.js:87:13) at RiakConnection.emit (events.js:172:7) at RiakConnection._emitAndClose (/home/ec2-user/gameserver/node_modules/basho-riak-client/lib/core/riakconnection.js:137:18) at RiakConnection._connClosed (/home/ec2-user/gameserver/node_modules/basho-riak-client/lib/core/riakconnection.js:459:10) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at TCP._onclose (net.js:477:12)

lukebakken commented 8 years ago

Thanks for the PR. This is already fixed by #164 and shipped in version 2.2.1