mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-23 23:21:49 +01:00
Use SendToAsync in another place
This commit is contained in:
parent
57af817c00
commit
c3b4190b02
@ -173,7 +173,11 @@ namespace DS4Windows
|
||||
Array.Copy(usefulData, 0, packetData, currIdx, usefulData.Length);
|
||||
FinishPacket(packetData);
|
||||
|
||||
try { udpSock.SendTo(packetData, clientEP); }
|
||||
//try { udpSock.SendTo(packetData, clientEP); }
|
||||
SocketAsyncEventArgs args = new SocketAsyncEventArgs();
|
||||
args.RemoteEndPoint = clientEP;
|
||||
args.SetBuffer(packetData, 0, packetData.Length);
|
||||
try { udpSock.SendToAsync(args); }
|
||||
catch (Exception e) { }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user