diff --git a/lib/commands/core.js b/lib/commands/core.js index 3e98d10dd..cbcf291bb 100644 --- a/lib/commands/core.js +++ b/lib/commands/core.js @@ -70,7 +70,7 @@ Core.expireSession = function (Sessions, safeKey) { Core.expireSessionAsync = function (Env, safeKey, cb) { setTimeout(function () { - Core.expireSession(Sessions, safeKey); + Core.expireSession(Env.Sessions, safeKey); cb(void 0, 'OK'); }); }; diff --git a/lib/rpc.js b/lib/rpc.js index d541a2550..7e46303e4 100644 --- a/lib/rpc.js +++ b/lib/rpc.js @@ -196,8 +196,6 @@ var handleAuthenticatedMessage = function (Env, map) { Respond(void 0, result); }); default: - console.log(msg); - throw new Error("OOPS"); return void Respond('UNSUPPORTED_RPC_CALL', msg); } };