Skip to content

Commit

Permalink
Fix goroutine double lock error
Browse files Browse the repository at this point in the history
  • Loading branch information
FIGBERT committed Aug 30, 2023
1 parent 58b2129 commit d8b1fb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion matrix/matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ func (c *Container) finishLogin(resp *mautrix.RespLogin) {
}
c.config.Save()

go c.Start()
if !c.headless {
go c.Start()
}
}

func respondHTML(w http.ResponseWriter, status int, message string) {
Expand Down

0 comments on commit d8b1fb4

Please sign in to comment.