diff options
Diffstat (limited to 'bridge/matrix')
-rw-r--r-- | bridge/matrix/matrix.go | 3 |
1 files changed, 3 insertions, 0 deletions
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) } |