diff --git a/client/client.cpp b/client/client.cpp index b6c478c..4ce5c9e 100644 --- a/client/client.cpp +++ b/client/client.cpp @@ -1090,6 +1090,7 @@ void CClient::handle_frame(CFrameBuffer* buf) buf->type_ = TYPE_GET_DIRFILES_DONE; msg_info.str = out; } + msg_info.id = buf->tid_; serialize(msg_info, &buf->data_, buf->len_); std::swap(buf->tid_, buf->fid_); if (!send_frame(buf)) { @@ -1206,14 +1207,9 @@ void CClient::handle_frame(CFrameBuffer* buf) break; } msg_info.str = variable_and_reverse_files(msg_info.str); + msg_info.id = buf->tid_; serialize(msg_info, &buf->data_, buf->len_); - CMessageInfo tp(buf->fid_); - if (!deserialize(buf->data_, buf->len_, tp)) { - TLOGE("{} GetList deserialize failed.", __LINE__); - break; - } - std::swap(buf->tid_, buf->fid_); buf->type_ = TYPE_REQUEST_UPDATE_LIST; if (!send_frame(buf)) { @@ -1240,6 +1236,7 @@ void CClient::handle_frame(CFrameBuffer* buf) buf->type_ = TYPE_UNCONFIRM_UPDATE_LIST; } } + msg_info.id = buf->tid_; serialize(msg_info, &buf->data_, buf->len_); std::swap(buf->tid_, buf->fid_); if (!send_frame(buf)) {