summaryrefslogtreecommitdiffstats
path: root/app/web_hub.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-10-30 11:57:24 -0500
committerGitHub <noreply@github.com>2017-10-30 11:57:24 -0500
commitc5e8cb25caa39ed018ede5270e1566e8f7448396 (patch)
tree80f9f8957d4ff8458ecf9631135c916df25544bd /app/web_hub.go
parent63df41b91110bac06baffef87fe0c1952b47ac93 (diff)
downloadchat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.gz
chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.tar.bz2
chat-c5e8cb25caa39ed018ede5270e1566e8f7448396.zip
simplify things (#7735)
Diffstat (limited to 'app/web_hub.go')
-rw-r--r--app/web_hub.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/web_hub.go b/app/web_hub.go
index 0473b29f9..c8c650246 100644
--- a/app/web_hub.go
+++ b/app/web_hub.go
@@ -98,7 +98,7 @@ func (a *App) HubStart() {
splits := strings.Split(output, "goroutine ")
for _, part := range splits {
- if strings.Index(part, fmt.Sprintf("%v", hub.goroutineId)) > -1 {
+ if strings.Contains(part, fmt.Sprintf("%v", hub.goroutineId)) {
l4g.Error("Trace for possible deadlock goroutine %v", part)
}
}