fix logDisconnect