[client] shutdown: silence expected transport teardown

This commit is contained in:
Geoffrey McRae
2026-08-16 22:35:41 +10:00
parent 056be1242a
commit 10c4366594
2 changed files with 6 additions and 2 deletions

View File

@@ -102,6 +102,7 @@ static bool controlReady(uint64_t now)
if (status != LG_TRANSPORT_OK) if (status != LG_TRANSPORT_OK)
{ {
if (status != LG_TRANSPORT_UNAVAILABLE && if (status != LG_TRANSPORT_UNAVAILABLE &&
status != LG_TRANSPORT_DISCONNECTED &&
!l_frameScheduler.controlFaulted) !l_frameScheduler.controlFaulted)
{ {
DEBUG_WARN( DEBUG_WARN(
@@ -169,6 +170,7 @@ static bool sendSchedule(LG_TransportFrameScheduleFlags flags,
if (status != LG_TRANSPORT_OK) if (status != LG_TRANSPORT_OK)
{ {
if (status != LG_TRANSPORT_UNAVAILABLE && if (status != LG_TRANSPORT_UNAVAILABLE &&
status != LG_TRANSPORT_DISCONNECTED &&
!l_frameScheduler.enqueueFaulted) !l_frameScheduler.enqueueFaulted)
{ {
DEBUG_WARN("Frame-schedule control failed with status %d", status); DEBUG_WARN("Frame-schedule control failed with status %d", status);

View File

@@ -753,7 +753,8 @@ static void lgmp_unsubscribeFrameLease(struct LGMPFrameLease * lease)
const LGMP_STATUS status = lgmpClientUnsubscribe(lease->subscription); const LGMP_STATUS status = lgmpClientUnsubscribe(lease->subscription);
if (status != LGMP_OK) if (status != LGMP_OK)
{ {
if (status != LGMP_ERR_QUEUE_TIMEOUT && if (status != LGMP_ERR_INVALID_SESSION &&
status != LGMP_ERR_QUEUE_TIMEOUT &&
status != LGMP_ERR_QUEUE_UNSUBSCRIBED) status != LGMP_ERR_QUEUE_UNSUBSCRIBED)
DEBUG_WARN("Failed to unsubscribe from LGMP frame queue: %s", DEBUG_WARN("Failed to unsubscribe from LGMP frame queue: %s",
lgmpStatusString(status)); lgmpStatusString(status));
@@ -833,7 +834,8 @@ static void lgmp_stopPointer(struct LG_Transport * this)
const LGMP_STATUS status = lgmpClientUnsubscribe(&this->pointerQueue); const LGMP_STATUS status = lgmpClientUnsubscribe(&this->pointerQueue);
if (status != LGMP_OK) if (status != LGMP_OK)
{ {
if (status != LGMP_ERR_QUEUE_TIMEOUT && if (status != LGMP_ERR_INVALID_SESSION &&
status != LGMP_ERR_QUEUE_TIMEOUT &&
status != LGMP_ERR_QUEUE_UNSUBSCRIBED) status != LGMP_ERR_QUEUE_UNSUBSCRIBED)
DEBUG_WARN("Failed to unsubscribe from the LGMP pointer queue: %s", DEBUG_WARN("Failed to unsubscribe from the LGMP pointer queue: %s",
lgmpStatusString(status)); lgmpStatusString(status));