Skip to content

Commit 21e05d4

Browse files
committed
fix: goroutine
1 parent 352aadf commit 21e05d4

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cmd/monolith/main.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,13 @@ func main() {
8080
password := os.Getenv("MDROID_OBS_WEBSOCKET_PASSWORD")
8181
data := rec.NewRecordConfigDataS()
8282

83-
err = rec.StartRecServer(host, password, data)
84-
if err != nil {
85-
fmt.Printf("could not reach or authenticate to OBS")
86-
}
83+
go func() {
84+
err = rec.StartRecServer(host, password, data)
85+
if err != nil {
86+
fmt.Printf("could not reach or authenticate to OBS")
87+
}
88+
}()
89+
8790
}
8891

8992
if config.Features.DiscordBot {

0 commit comments

Comments
 (0)