[FIX] server: fixed reconnect logic bugs
Merge pull request #122 from shekenahglory/develop

[FIX] server: fixed reconnect logic bugs