fix bug: client do nothing when connect success.