From 88c1f1bc7fc29baceb119fbcacaa5d9d89192f6c Mon Sep 17 00:00:00 2001 From: Jared Hanson Date: Wed, 18 May 2022 08:34:40 -0700 Subject: [PATCH] Handle logout without session manager. --- lib/http/request.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/http/request.js b/lib/http/request.js index 9634dbd1..58efb3aa 100644 --- a/lib/http/request.js +++ b/lib/http/request.js @@ -59,6 +59,8 @@ req.logOut = function(done) { if (typeof done != 'function') { throw new Error('req#logout requires a callback function'); } this._sessionManager.logOut(this, done); + } else { + done && done(); } };