Decreasing delay from timer_delay2 to timer_delay for sending/receiving packets when connecting to UDP host due to FPS-dependent inconsistencies in timer_delay2 causing packets possibly not received or sent frequently

This commit is contained in:
zicodxx 2009-01-29 11:15:18 +00:00
parent 3995cb9d05
commit b2036d7048

View file

@ -387,7 +387,7 @@ int UDPConnectManual(char *textaddr)
memcpy(outbuf+0,DXXcfgid,4);
outbuf[4]=CFG_FIRSTCONTACT_REQ;
sendto (UDP_sock, outbuf, sizeof(outbuf), 0, (struct sockaddr *) &HostAddr, sizeof(struct _sockaddr));
timer_delay2(10);
timer_delay(500);
// ... and wait for answer
udp_receive_packet(NULL,inbuf,6,NULL);
}