Actually fix race condition that happens in production. I think.

This commit is contained in:
Gabe Kangas
2020-06-18 13:09:54 -07:00
parent 51b79287c5
commit f013a8639a
3 changed files with 12 additions and 4 deletions

View File

@@ -74,6 +74,9 @@ func resetDirectories(configuration Config) {
os.MkdirAll(path.Join(configuration.PublicHLSPath, strconv.Itoa(0)), 0777)
}
}
func createInitialOfflineState() {
// Provide default files
showStreamOfflineState(configuration)
if !fileExists("webroot/thumbnail.png") {