summaryrefslogtreecommitdiffstats
path: root/matterclient
diff options
context:
space:
mode:
Diffstat (limited to 'matterclient')
-rw-r--r--matterclient/matterclient.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index 21943566..c641e9f0 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -103,6 +103,7 @@ func (m *MMClient) Login() error {
// login to mattermost
m.Client = model.NewClient(uriScheme + m.Credentials.Server)
m.Client.HttpClient.Transport = &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: m.SkipTLSVerify}}
+ m.Client.HttpClient.Timeout = time.Second * 10
var myinfo *model.Result
var appErr *model.AppError
var logmsg = "trying login"