修复:多次重连后消息订阅失败 bug
git-svn-id: svn://47.119.165.148/zhub@72 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
@@ -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(`
|
||||
|
||||
Reference in New Issue
Block a user