diff options
author | =Corey Hulen <corey@hulen.com> | 2015-08-20 14:20:39 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-08-20 14:20:39 -0700 |
commit | 3f0ec24dc1c18a550913beba8e742e0dbb4c7b42 (patch) | |
tree | fb3fc64433b99f8819ca6abe51b2f37082956b51 /model | |
parent | 8b3bbc5fb9b293f281b13797c299e620b00bfdec (diff) | |
download | chat-3f0ec24dc1c18a550913beba8e742e0dbb4c7b42.tar.gz chat-3f0ec24dc1c18a550913beba8e742e0dbb4c7b42.tar.bz2 chat-3f0ec24dc1c18a550913beba8e742e0dbb4c7b42.zip |
Fixing build
Diffstat (limited to 'model')
-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) } |