From 6422bb1aeae1bbf8ea8a75a5db4924ec630507ba Mon Sep 17 00:00:00 2001 From: Peter Loer Date: Thu, 18 Dec 2014 13:40:19 -0800 Subject: [PATCH] Disable expirationTimer.unref() change under node 0.10.34 due to https://github.com/joyent/node/issues/8900 --- lib/passport-saml/inmemory-cache-provider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/passport-saml/inmemory-cache-provider.js b/lib/passport-saml/inmemory-cache-provider.js index ccef11c5..58bc2edd 100644 --- a/lib/passport-saml/inmemory-cache-provider.js +++ b/lib/passport-saml/inmemory-cache-provider.js @@ -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(); };