修复:多次重连后消息订阅失败 bug

git-svn-id: svn://47.119.165.148/zhub@72 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
lxy
2021-01-16 18:03:19 +00:00
parent a99f2398af
commit 9b3c155f85
4 changed files with 37 additions and 16 deletions

View File

@@ -97,17 +97,15 @@ func (s *ZSub) timer(rcmd []string, c *ZConn) {
timer.single = strings.EqualFold("a", rcmd[3])
//timer.configSave()
}
s.timers[rcmd[1]] = timer
}
func (t *ZTimer) close(c *ZConn) {
/*func (t *ZTimer) close(c *ZConn) {
for i, item := range t.conns {
if item.conn == c.conn {
t.conns = append(t.conns[:i], t.conns[i+1:]...)
}
}
}
}*/
func (t *ZTimer) configSave() {
tpl, err := template.New("").Parse(`