Reset session stats when we cleanup the session. Closes #180

This commit is contained in:
Gabe Kangas
2020-09-24 19:38:24 -07:00
parent cb2794f68c
commit fc45645280
2 changed files with 2 additions and 5 deletions

View File

@@ -64,6 +64,8 @@ func startCleanupTimer() {
for {
select {
case <-_cleanupTimer.C:
// Reset the session count since the session is over
_stats.SessionMaxViewerCount = 0
resetDirectories()
ffmpeg.ShowStreamOfflineState()
}