diff options
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/network.c | 8 |
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 | ||
278 | void networking_poll(Networking_Core *net) | 278 | void 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; |