forked from premiere/premiere-libtorrent
fix rotating logs when enabling and disabling stats logging at run-time
This commit is contained in:
parent
22f20253f8
commit
35038bc3eb
|
@ -3038,6 +3038,14 @@ namespace aux {
|
|||
m_stats_logging_enabled = s;
|
||||
|
||||
reset_stat_counters();
|
||||
if (!s)
|
||||
{
|
||||
if (m_stats_logger) fclose(m_stats_logger);
|
||||
}
|
||||
else
|
||||
{
|
||||
rotate_stats_log();
|
||||
}
|
||||
}
|
||||
|
||||
void session_impl::reset_stat_counters()
|
||||
|
|
Loading…
Reference in New Issue