fix server reconnect bug

Change-Id: I498e9b83c783decd9411a28cf55854c096ceb13d