summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-10-25 14:55:46 -0400
committerirungentoo <irungentoo@gmail.com>2013-10-25 14:55:46 -0400
commitbbef18ab4e56fc727d4b629b6fd3882551eccdf5 (patch)
tree3b0a163bb83abb541f855ea24437712c7a763444 /toxcore
parent9ccdac0e8268776c2cd7f9f6af347d44ca03c73d (diff)
Update time before running functions for recieved packets.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/network.c8
1 files changed, 5 insertions, 3 deletions
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 @@
20 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 20 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
21 * 21 *
22 */ 22 */
23 23
24#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP) 24#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
25#define _WIN32_WINNT 0x501 25#define _WIN32_WINNT 0x501
26#endif 26#endif
27 27
28#ifdef HAVE_CONFIG_H 28#ifdef HAVE_CONFIG_H
29#include "config.h" 29#include "config.h"
@@ -277,6 +277,8 @@ void networking_registerhandler(Networking_Core *net, uint8_t byte, packet_handl
277 277
278void networking_poll(Networking_Core *net) 278void networking_poll(Networking_Core *net)
279{ 279{
280 unix_time_update();
281
280 IP_Port ip_port; 282 IP_Port ip_port;
281 uint8_t data[MAX_UDP_PACKET_SIZE]; 283 uint8_t data[MAX_UDP_PACKET_SIZE];
282 uint32_t length; 284 uint32_t length;