mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-09-03 13:31:53 +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)
|
if (dest)
|
||||||
{
|
{
|
||||||
auto streamingDest = dest->GetStreamingDestination ();
|
auto streamingDest = dest->GetStreamingDestination ();
|
||||||
auto numStreams = streamingDest->GetNumStreams ();
|
if (streamingDest)
|
||||||
if (numStreams > 0)
|
{
|
||||||
{
|
auto numStreams = streamingDest->GetNumStreams ();
|
||||||
LogPrint (eLogInfo, "SAM: Session ", session->Name, " still has ", numStreams, " streams");
|
if (numStreams > 0)
|
||||||
ScheduleSessionCleanupTimer (session);
|
{
|
||||||
|
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…
x
Reference in New Issue
Block a user