fix server reconnect bug

Change-Id: Idd32e30ceac2cb8e60f0c9c1197d1d4ae0a07f00