modify cluster logic

This commit is contained in:
zhouyuyan
2017-11-21 14:05:06 +08:00
parent 6a89b627d4
commit 5786e69b01
5 changed files with 18 additions and 2 deletions

View File

@@ -486,6 +486,11 @@ func (c *client) Close() {
if c.info.willMsg != nil {
b.PublishMessage(c.info.willMsg)
}
//do reconnect
if c.typ == REMOTE {
b.connectRouter(c.route.remoteUrl, "")
}
}
}