diff options
author | Corey Hulen <corey@hulen.com> | 2015-08-21 09:00:23 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-08-21 09:00:23 -0700 |
commit | 1ba694626128870698a6e011047ed899f5f90ba4 (patch) | |
tree | c49dd9fd25517457215f2e893b65a8760daba3a7 /model/client.go | |
parent | ddcdcc3e2c85efbfd1d91d69c0f5c0af7c7cb1c7 (diff) | |
parent | e4b66c3ff41bcac47f026151a7cb1b19b1217672 (diff) | |
download | chat-1ba694626128870698a6e011047ed899f5f90ba4.tar.gz chat-1ba694626128870698a6e011047ed899f5f90ba4.tar.bz2 chat-1ba694626128870698a6e011047ed899f5f90ba4.zip |
Merge pull request #430 from mattermost/fixing-build
Fixing race condition
Diffstat (limited to 'model/client.go')
-rw-r--r-- | model/client.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/model/client.go b/model/client.go index 6fcfa5043..17e2466df 100644 --- a/model/client.go +++ b/model/client.go @@ -5,6 +5,7 @@ package model import ( "bytes" + l4g "code.google.com/p/log4go" "fmt" "io/ioutil" "net/http" @@ -93,6 +94,7 @@ func getCookie(name string, resp *http.Response) *http.Cookie { func (c *Client) Must(result *Result, err *AppError) *Result { if err != nil { + l4g.Close() time.Sleep(time.Second) panic(err) } |