From d8b1fb40dc21ba4b87abc3d8789aa331bae6f9d6 Mon Sep 17 00:00:00 2001 From: FIGBERT Date: Tue, 29 Aug 2023 23:20:59 -0700 Subject: [PATCH] Fix goroutine double lock error --- matrix/matrix.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix/matrix.go b/matrix/matrix.go index ab8f855..c94e119 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -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) {