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"