fix bug of DISCONNECT from client and server