diff options
Diffstat (limited to 'matrix.go')
-rw-r--r-- | matrix.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -103,8 +103,10 @@ func (c *MatrixContainer) Login(user, password string) error { } func (c *MatrixContainer) Stop() { - c.stop <- true - c.client.StopSync() + if c.running { + c.stop <- true + c.client.StopSync() + } } func (c *MatrixContainer) UpdateRoomList() { |