From 0ccf124cf07c192f1f4384b04aac707550c9ec7f Mon Sep 17 00:00:00 2001 From: inportb Date: Mon, 1 May 2023 17:17:44 -0400 Subject: [PATCH] Fix broken connection detection --- htdocs/vistax.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/vistax.mjs b/htdocs/vistax.mjs index 198af90..0883feb 100644 --- a/htdocs/vistax.mjs +++ b/htdocs/vistax.mjs @@ -463,7 +463,7 @@ Client.fromCookie = async function(secret, defaulthost='vista.northport.med.va.g console.log('Using saved secret and connection', secret); var cid = localstate.cid; var client = Client.fromID(cid, secret); - if((await vista.call(cid, { method: 'XWB_IM_HERE', ttl: 30, id: Date.now() })).result == '1') { + if((await vista.call(cid, { method: 'XWB_IM_HERE', ttl: 0, stale: false, id: Date.now() })).result == '1') { var server = await client.serverinfo(); if((host[0] == server.result.host) && (host[1] == server.result.port)) { localstate.host = host.join(':');