From 46e4317b77d686a626d37f2eb1c85c6c19f6b665 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 24 Oct 2021 19:00:15 +0200 Subject: Keep the logger on a disabled bridge. Fixes #1616 (#1621) --- bridge/matrix/matrix.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/matrix/matrix.go') diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index b50c9d8b..e89002b2 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -301,6 +301,9 @@ func (b *Bmatrix) handlematrix() { syncer.OnEventType("m.room.member", b.handleMemberChange) go func() { for { + if b == nil { + return + } if err := b.mc.Sync(); err != nil { b.Log.Println("Sync() returned ", err) } -- cgit v1.2.3