0

Troubleshooting race condition

This commit is contained in:
Gabe Kangas 2020-06-17 23:01:31 -07:00
parent e63d0656ba
commit 02692befc6

View File

@ -37,18 +37,19 @@ func main() {
usingExternalStorage = true usingExternalStorage = true
} }
resetDirectories(configuration)
if usingExternalStorage { if usingExternalStorage {
storage.Setup(configuration) storage.Setup(configuration)
go monitorVideoContent(configuration.PrivateHLSPath, configuration, storage) go monitorVideoContent(configuration.PrivateHLSPath, configuration, storage)
} }
resetDirectories(configuration)
go startRTMPService() go startRTMPService()
startChatServer() startWebServer()
} }
func startChatServer() { func startWebServer() {
// log.SetFlags(log.Lshortfile) // log.SetFlags(log.Lshortfile)
// websocket server // websocket server