summaryrefslogtreecommitdiffstats
path: root/model/client.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-07-12 19:12:23 -0800
committer=Corey Hulen <corey@hulen.com>2015-07-12 19:12:23 -0800
commit443a386f775dba732fa788625dc99438d16d3931 (patch)
tree7b879e2e31fc46d9feb2262a775fd09003b4bffc /model/client.go
parentcf11d387eef7883d8c2866d8bb44887120499963 (diff)
downloadchat-443a386f775dba732fa788625dc99438d16d3931.tar.gz
chat-443a386f775dba732fa788625dc99438d16d3931.tar.bz2
chat-443a386f775dba732fa788625dc99438d16d3931.zip
minor tweaks to make sure mysql still runs
Diffstat (limited to 'model/client.go')
-rw-r--r--model/client.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/model/client.go b/model/client.go
index ab01e7d62..e22f2308e 100644
--- a/model/client.go
+++ b/model/client.go
@@ -11,6 +11,7 @@ import (
"net/url"
"strconv"
"strings"
+ "time"
)
const (
@@ -92,6 +93,7 @@ func getCookie(name string, resp *http.Response) *http.Cookie {
func (c *Client) Must(result *Result, err *AppError) *Result {
if err != nil {
+ time.Sleep(time.Second)
panic(err)
}