Changed index increment placement

Seems to solve #454 on my machine
This commit is contained in:
Travis Nickles 2018-10-24 04:17:01 -05:00
parent 76ccb44a32
commit dfcc3250cf

View File

@ -183,9 +183,9 @@ namespace DS4Windows
//try { udpSock.SendTo(packetData, clientEP); }
SocketAsyncEventArgs args = argsList[listInd];
listInd = ++listInd % 20;
args.RemoteEndPoint = clientEP;
args.SetBuffer(packetData, 0, packetData.Length);
listInd = ++listInd % 20;
try {
udpSock.SendToAsync(args);
}
@ -643,9 +643,9 @@ namespace DS4Windows
{
//try { udpSock.SendTo(outputData, cl); }
SocketAsyncEventArgs args = argsList[listInd];
listInd = ++listInd % 20;
args.RemoteEndPoint = cl;
args.SetBuffer(outputData, 0, outputData.Length);
listInd = ++listInd % 20;
try {
udpSock.SendToAsync(args);
}