Skip to content

Commit

Permalink
Do not clear buffer after sending it
Browse files Browse the repository at this point in the history
The same buffer can be sent to multiple users. If we call to clear only the first client will get it.
  • Loading branch information
morgolock committed Feb 11, 2025
1 parent 553e6f5 commit 60324d8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Codigo/clsNetWriter.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60324d8

Please sign in to comment.