Skip to content

Commit

Permalink
Disable expirationTimer.unref() change under node 0.10.34 due to node…
Browse files Browse the repository at this point in the history
  • Loading branch information
ploer committed Dec 18, 2014
1 parent 4daf10e commit 6422bb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/passport-saml/inmemory-cache-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ var CacheProvider = function (options) {

// we only want this to run if the process is still open; it shouldn't hold the process open (issue #68)
// (unref only introduced in node 0.9, so check whether we have it)
if (expirationTimer.unref)
// Skip this in 0.10.34 due to https://github.com/joyent/node/issues/8900
if (expirationTimer.unref && process.version !== 'v0.10.34')
expirationTimer.unref();
};

Expand Down

0 comments on commit 6422bb1

Please sign in to comment.