Browse files

make sure up.conn is not null before calling up.conn.end(), fixes iss…

…ue#11
  • Loading branch information...
1 parent 795ec70 commit 912928c2480372cec80f8aac9e986c6614743a2d @substack committed Sep 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 index.js
  2. +1 −1 package.json
View
2 index.js
@@ -201,7 +201,7 @@ function connect (up, cons) {
var t0 = Date.now();
var to = opts.timeout && setTimeout(function () {
clearInterval(pinger);
- up.conn.end();
+ if (up.conn) up.conn.end();
stream.destroy();
}, opts.timeout);
View
2 package.json
@@ -1,7 +1,7 @@
{
"name" : "upnode",
"description" : "transactional connection queue for dnode",
- "version" : "0.4.2",
+ "version" : "0.4.3",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/upnode.git"

0 comments on commit 912928c

Please sign in to comment.