aboutsummaryrefslogtreecommitdiff
path: root/connector/mattermost/mattermost.go
diff options
context:
space:
mode:
Diffstat (limited to 'connector/mattermost/mattermost.go')
-rw-r--r--connector/mattermost/mattermost.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/connector/mattermost/mattermost.go b/connector/mattermost/mattermost.go
index 0b863fb..e3a6429 100644
--- a/connector/mattermost/mattermost.go
+++ b/connector/mattermost/mattermost.go
@@ -69,7 +69,7 @@ func (mm *Mattermost) Configure(c Configuration) error {
return err
}
- mm.initial_members, err = c.GetInt("initial_members", 1000)
+ mm.initial_members, err = c.GetInt("initial_members", 100)
if err != nil {
return err
}
@@ -312,7 +312,9 @@ func (mm *Mattermost) Send(event *Event) error {
}
func (mm *Mattermost) Close() {
- mm.conn.WsQuit = true
+ if mm.conn != nil {
+ mm.conn.WsQuit = true
+ }
if mm.handlerStopChan != nil {
mm.handlerStopChan <- true
mm.handlerStopChan = nil