feat: verify Tornado PGM KTAP connection
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user