diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-01-30 15:36:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-30 15:36:31 -0500 |
commit | b26329cdda2ff599d01afbe01b2e2df3896a6b57 (patch) | |
tree | b79ec1db443e157d54016e871868026865c84468 /app | |
parent | 721ac527848714ef87befb9ff25e3d4b30d673e1 (diff) | |
download | chat-b26329cdda2ff599d01afbe01b2e2df3896a6b57.tar.gz chat-b26329cdda2ff599d01afbe01b2e2df3896a6b57.tar.bz2 chat-b26329cdda2ff599d01afbe01b2e2df3896a6b57.zip |
Fix small bug in webhub. (#5229)
Diffstat (limited to 'app')
-rw-r--r-- | app/web_hub.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/web_hub.go b/app/web_hub.go index ad8d9e233..21ed341ce 100644 --- a/app/web_hub.go +++ b/app/web_hub.go @@ -227,7 +227,9 @@ func (h *Hub) Start() { } if userId == webConCandidate.UserId { found = true - break + if indexToDel != -1 { + break + } } } |