tweak forced disconnection from p2p

ejs-templating-update
Moe 2022-07-30 15:09:00 -07:00
parent 3f9ca074b7
commit 18137da4ab
1 changed files with 3 additions and 2 deletions

View File

@ -258,8 +258,9 @@ function startConnection(p2pServerAddress,subscriptionId){
})
onIncomingMessage('disconnect',function(data,requestId){
console.log(`FAILED LICENSE CHECK ON P2P`)
if(data.retryLater)console.log(`Retrying Later`)
stayDisconnected = data && !data.retryLater
const retryLater = data && data.retryLater;
stayDisconnected = !retryLater
if(retryLater)console.log(`Retrying P2P Later...`)
})
}
const responseTunnels = {}