From bbef18ab4e56fc727d4b629b6fd3882551eccdf5 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 25 Oct 2013 14:55:46 -0400 Subject: Update time before running functions for recieved packets. --- toxcore/network.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'toxcore') diff --git a/toxcore/network.c b/toxcore/network.c index 53511df6..0f96083c 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -20,10 +20,10 @@ * along with Tox. If not, see . * */ - + #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; -- cgit v1.2.3