Troubleshooting race condition
This commit is contained in:
parent
e63d0656ba
commit
02692befc6
7
main.go
7
main.go
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user