solve the get message bug when client send message and then disconnect