Windows 0.3.6 runtime preflight and update download reliability source delta; connection fixes retained; no private history or other platform changes
This commit is contained in:
@@ -11,6 +11,12 @@ internal sealed partial class MainForm
|
||||
{
|
||||
_connectionAttemptCancellation?.Cancel();
|
||||
_accessToken = token;
|
||||
if (token is null)
|
||||
{
|
||||
_runtimeRepairRequired = false;
|
||||
_statusDetail.AccessibleDescription = null;
|
||||
_runtimeRepairTip.SetToolTip(_statusDetail, null);
|
||||
}
|
||||
_connectionAuthorization.Reset(expiresAt, DateTimeOffset.UtcNow, Environment.TickCount64);
|
||||
_connectionHealth.Invalidate();
|
||||
_sessionRevision++;
|
||||
@@ -46,7 +52,8 @@ internal sealed partial class MainForm
|
||||
// retries the same node's domain through the normal fresh-grant connector.
|
||||
private async Task CheckTailnetReadinessAsync()
|
||||
{
|
||||
if (_uiOnly || _preview) return;
|
||||
if (_runtimeRepairRequired || !_wantConnected || _uiOnly || _preview) return;
|
||||
if (!PreflightClientRuntime(suppressDialogs: true)) return;
|
||||
if (!_tailnetReadiness.TryBegin(ReadTailnetReadinessContext(), Environment.TickCount64, out var ticket))
|
||||
{
|
||||
_tailnetReconnectItem.Enabled = _tailnetReadiness.IsReady && !_busy && !_exiting;
|
||||
@@ -63,6 +70,7 @@ internal sealed partial class MainForm
|
||||
catch (Exception) { /* Fixed diagnostics below contain no credentials. */ }
|
||||
var result = _tailnetReadiness.Observe(ticket, ReadTailnetReadinessContext(), Environment.TickCount64, reachable);
|
||||
if (_exiting || IsDisposed || Disposing) return;
|
||||
if (_runtimeRepairRequired || !PreflightClientRuntime(suppressDialogs: true)) return;
|
||||
_tailnetReconnectItem.Enabled = _tailnetReadiness.IsReady && !_busy;
|
||||
if (result == TailnetReadinessPolicy.Result.Fallback && _currentNodeSlug is { } slug)
|
||||
{
|
||||
@@ -86,6 +94,7 @@ internal sealed partial class MainForm
|
||||
{
|
||||
if (_uiOnly || _preview || _exiting || _busy || !_wantConnected || !_xray.IsRunning
|
||||
|| _xray.UsesTailnet || !_tailnetReadiness.IsReady) return;
|
||||
if (!PreflightClientRuntime(suppressDialogs: false, clearRepair: true)) return;
|
||||
_tailnetReadiness.Reset();
|
||||
_tailnetReconnectItem.Enabled = false;
|
||||
_tailnetPreference.ResetForUserConnect();
|
||||
|
||||
Reference in New Issue
Block a user