From e6388e8bb011f91be2ecfbc8a4e2ae547d1123ea Mon Sep 17 00:00:00 2001 From: totoro Date: Wed, 22 May 2019 18:28:22 +0900 Subject: [PATCH] add flush_wait to be sure that no message left in the send queue --- net_services/CXM_generic_protocol.anubis | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/net_services/CXM_generic_protocol.anubis b/net_services/CXM_generic_protocol.anubis index 9b6459f..e88ea1a 100644 --- a/net_services/CXM_generic_protocol.anubis +++ b/net_services/CXM_generic_protocol.anubis @@ -275,6 +275,7 @@ public define Bool success(source) then println("NET_SERVICE send_file_ref send ack file size "+size); send_ACK_ok(mQ, _CXM_GET_FILE_REF, msg); + mQ.flush_wait(unique); if copy_file_to_Connection(file(source), mQ.get_connection(unique), size) is { failure then println("NET_SERVICE send_file_ref copy_file_to_Connection error");false, -- libgit2 0.21.4