mirror of
https://github.com/TokTok/c-toxcore
synced 2026-06-05 01:31:49 +00:00
Update time before running functions for recieved packets.
This commit is contained in:
+5
-3
@@ -20,10 +20,10 @@
|
||||
* along with Tox. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
|
||||
#define _WIN32_WINNT 0x501
|
||||
#endif
|
||||
#define _WIN32_WINNT 0x501
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
@@ -277,6 +277,8 @@ void networking_registerhandler(Networking_Core *net, uint8_t byte, packet_handl
|
||||
|
||||
void networking_poll(Networking_Core *net)
|
||||
{
|
||||
unix_time_update();
|
||||
|
||||
IP_Port ip_port;
|
||||
uint8_t data[MAX_UDP_PACKET_SIZE];
|
||||
uint32_t length;
|
||||
|
||||
Reference in New Issue
Block a user