From 60324d8a9b2889644702261780d5302fe77eef9d Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Tue, 11 Feb 2025 11:32:16 +0000 Subject: [PATCH] Do not clear buffer after sending it The same buffer can be sent to multiple users. If we call to clear only the first client will get it. --- Codigo/clsNetWriter.cls | 1 - 1 file changed, 1 deletion(-) diff --git a/Codigo/clsNetWriter.cls b/Codigo/clsNetWriter.cls index 485ba697..7b3365ee 100644 --- a/Codigo/clsNetWriter.cls +++ b/Codigo/clsNetWriter.cls @@ -58,7 +58,6 @@ On Error GoTo send_error Debug.Assert lOffset > 0 ' No data in the buffer? ReDim Preserve oMsg(0 To lOffset - 1) dps.sendto idSend, oMsg, 0, DPNSEND_GUARANTEED Or DPNSEND_PRIORITY_HIGH Or DPNSEND_NOLOOPBACK - Me.Clear Exit Sub send_error: 'If there is an error, handle it