Try to fix a race condition where a file is attempted to be moved and deleted at the same time

This commit is contained in:
Gabe Kangas
2020-06-17 17:52:47 -07:00
parent f20d8b3179
commit 0cb2ab396c
3 changed files with 8 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ func main() {
log.StandardLogger().Printf("Owncast v%s/%s (%s)", BuildVersion, BuildType, GitCommit)
checkConfig(configuration)
stats = getSavedStats()
stats.Setup()
@@ -38,7 +39,6 @@ func main() {
if usingExternalStorage {
storage.Setup(configuration)
// hlsDirectoryPath = configuration.PrivateHLSPath
go monitorVideoContent(configuration.PrivateHLSPath, configuration, storage)
}