Remove stale client purging. Use sockets to count clients. #323
This commit is contained in:
@@ -13,7 +13,6 @@ import (
|
||||
|
||||
"github.com/owncast/owncast/config"
|
||||
"github.com/owncast/owncast/core"
|
||||
"github.com/owncast/owncast/models"
|
||||
"github.com/owncast/owncast/router/middleware"
|
||||
"github.com/owncast/owncast/utils"
|
||||
)
|
||||
@@ -47,9 +46,6 @@ func IndexHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
if path.Ext(r.URL.Path) == ".m3u8" {
|
||||
middleware.DisableCache(w)
|
||||
|
||||
client := models.GenerateClientFromRequest(r)
|
||||
core.SetClientActive(client)
|
||||
}
|
||||
|
||||
// Set a cache control max-age header
|
||||
|
||||
Reference in New Issue
Block a user