Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Troubleshooting race condition

Gabe Kangas02692befc6f7
diff --git a/main.go b/main.go
index ddf0717cc2..915e55cd39 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