mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-08-31 18:31:52 +00:00
fixed #2215. Check streaming destination during cleanup
This commit is contained in:
parent
643a94a441
commit
aeca4c3fc7
@ -1590,14 +1590,17 @@ namespace client
|
||||
if (dest)
|
||||
{
|
||||
auto streamingDest = dest->GetStreamingDestination ();
|
||||
auto numStreams = streamingDest->GetNumStreams ();
|
||||
if (numStreams > 0)
|
||||
{
|
||||
LogPrint (eLogInfo, "SAM: Session ", session->Name, " still has ", numStreams, " streams");
|
||||
ScheduleSessionCleanupTimer (session);
|
||||
if (streamingDest)
|
||||
{
|
||||
auto numStreams = streamingDest->GetNumStreams ();
|
||||
if (numStreams > 0)
|
||||
{
|
||||
LogPrint (eLogInfo, "SAM: Session ", session->Name, " still has ", numStreams, " streams");
|
||||
ScheduleSessionCleanupTimer (session);
|
||||
}
|
||||
else
|
||||
LogPrint (eLogDebug, "SAM: Session ", session->Name, " terminated");
|
||||
}
|
||||
else
|
||||
LogPrint (eLogDebug, "SAM: Session ", session->Name, " terminated");
|
||||
}
|
||||
}
|
||||
// session's destructor is called here unless rescheduled
|
||||
|
Loading…
x
Reference in New Issue
Block a user