From 02692befc6f747f7d2d0ccd4029ea08f9eee22f5 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 17 Jun 2020 23:01:31 -0700 Subject: [PATCH] Troubleshooting race condition --- main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index ddf0717cc..915e55cd3 100644 --- a/main.go +++ b/main.go @@ -37,18 +37,19 @@ func main() { usingExternalStorage = true } + resetDirectories(configuration) + if usingExternalStorage { storage.Setup(configuration) go monitorVideoContent(configuration.PrivateHLSPath, configuration, storage) } - resetDirectories(configuration) go startRTMPService() - startChatServer() + startWebServer() } -func startChatServer() { +func startWebServer() { // log.SetFlags(log.Lshortfile) // websocket server