aboutsummaryrefslogtreecommitdiff
path: root/matrix.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-15 21:28:21 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-15 21:28:21 +0200
commitf99cede4324852310a0e0dfbcf01ffb61beb2c42 (patch)
treecfa9d3845e6493923102f4dac04bab5301833706 /matrix.go
parent2bf057d27cc76fc22f3fee51f17269d23bb4b4e4 (diff)
HAAAAAAAAANDS
Diffstat (limited to 'matrix.go')
-rw-r--r--matrix.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/matrix.go b/matrix.go
index 6a75966..9200649 100644
--- a/matrix.go
+++ b/matrix.go
@@ -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() {