diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-03-15 21:28:21 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-03-15 21:28:21 +0200 |
commit | f99cede4324852310a0e0dfbcf01ffb61beb2c42 (patch) | |
tree | cfa9d3845e6493923102f4dac04bab5301833706 /matrix.go | |
parent | 2bf057d27cc76fc22f3fee51f17269d23bb4b4e4 (diff) |
HAAAAAAAAANDS
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() { |