feat: verify Tornado PGM KTAP connection

This commit is contained in:
2026-07-10 14:28:45 +09:00
parent b113830c14
commit 930424b752
22 changed files with 3474 additions and 67 deletions

View File

@@ -498,11 +498,11 @@ internal sealed class TornadoPlayoutEngine : IPlayoutEngine
IK3dSession? pendingSession = null;
try
{
var session = _sessionFactory.Create();
Volatile.Write(ref pendingSession, session);
_session = await _dispatcher.InvokeAsync(
() =>
{
var session = _sessionFactory.Create();
Volatile.Write(ref pendingSession, session);
try
{
session.Connect(_options);
@@ -517,7 +517,7 @@ internal sealed class TornadoPlayoutEngine : IPlayoutEngine
_options.ConnectTimeout,
cancellationToken,
static lateSession => lateSession.Dispose(),
() => Volatile.Read(ref pendingSession)?.Dispose()).ConfigureAwait(false);
() => Volatile.Read(ref pendingSession)?.TryPreventKtapConnect()).ConfigureAwait(false);
CaptureKtapEvidence(_session);