fixed #2215. Check streaming destination during cleanup

This commit is contained in:
orignal 2025-08-03 16:34:31 -04:00
parent 643a94a441
commit aeca4c3fc7

View file

@ -1590,6 +1590,8 @@ namespace client
if (dest) if (dest)
{ {
auto streamingDest = dest->GetStreamingDestination (); auto streamingDest = dest->GetStreamingDestination ();
if (streamingDest)
{
auto numStreams = streamingDest->GetNumStreams (); auto numStreams = streamingDest->GetNumStreams ();
if (numStreams > 0) if (numStreams > 0)
{ {
@ -1600,6 +1602,7 @@ namespace client
LogPrint (eLogDebug, "SAM: Session ", session->Name, " terminated"); LogPrint (eLogDebug, "SAM: Session ", session->Name, " terminated");
} }
} }
}
// session's destructor is called here unless rescheduled // session's destructor is called here unless rescheduled
} }