mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-08-26 10:10:24 +01:00
fixed #2215. Check streaming destination during cleanup
This commit is contained in:
parent
643a94a441
commit
aeca4c3fc7
1 changed files with 10 additions and 7 deletions
|
@ -1590,14 +1590,17 @@ namespace client
|
||||||
if (dest)
|
if (dest)
|
||||||
{
|
{
|
||||||
auto streamingDest = dest->GetStreamingDestination ();
|
auto streamingDest = dest->GetStreamingDestination ();
|
||||||
auto numStreams = streamingDest->GetNumStreams ();
|
if (streamingDest)
|
||||||
if (numStreams > 0)
|
|
||||||
{
|
{
|
||||||
LogPrint (eLogInfo, "SAM: Session ", session->Name, " still has ", numStreams, " streams");
|
auto numStreams = streamingDest->GetNumStreams ();
|
||||||
ScheduleSessionCleanupTimer (session);
|
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
|
// session's destructor is called here unless rescheduled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue