fix(session): keep the maintenance sweeps and capabilities with the session owner

This commit is contained in:
2026-09-26 22:11:03 +10:00
parent af4e44173f
commit bb26760011
5 changed files with 123 additions and 17 deletions
@@ -30,17 +30,19 @@ public sealed class RemoteSessionController : ISessionController
/// <param name="ownerPod">The instance holding the connection.</param>
/// <param name="sessionId">The session identifier.</param>
/// <param name="supportsMediaControl">Whether the owner reported the session as controllable.</param>
public RemoteSessionController(IPodMessageBus bus, ILogger logger, string ownerPod, string sessionId, bool supportsMediaControl)
/// <param name="holdsConnection">Whether the owner reported that it holds the session's connection.</param>
public RemoteSessionController(IPodMessageBus bus, ILogger logger, string ownerPod, string sessionId, bool supportsMediaControl, bool holdsConnection)
{
_bus = bus;
_logger = logger;
_ownerPod = ownerPod;
_sessionId = sessionId;
SupportsMediaControl = supportsMediaControl;
IsSessionActive = holdsConnection;
}
/// <inheritdoc />
public bool IsSessionActive => true;
public bool IsSessionActive { get; }
/// <inheritdoc />
public bool SupportsMediaControl { get; }