mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-03-30 13:35:31 +08:00
[feat] use SendReliableDataFrame() instead of SendDataFrame()
This commit is contained in:
@@ -1341,8 +1341,8 @@ void Render::MainLoop() {
|
||||
remote_action.i.host_name_size = host_name.size();
|
||||
|
||||
std::string msg = remote_action.to_json();
|
||||
int ret = SendDataFrame(peer_, msg.data(), msg.size(),
|
||||
data_label_.c_str(), false);
|
||||
int ret = SendReliableDataFrame(peer_, msg.data(), msg.size(),
|
||||
data_label_.c_str());
|
||||
FreeRemoteAction(remote_action);
|
||||
if (0 == ret) {
|
||||
need_to_send_host_info_ = false;
|
||||
|
||||
Reference in New Issue
Block a user