Fix reconnecting never happen (1.0)

a related issue: #545