diff packet.c @ 928:7cd89d4e0335

Add new monotonic_now() wrapper so that timeouts are unaffected by system clock changes
author Matt Johnston <matt@ucc.asn.au>
date Thu, 13 Mar 2014 23:50:09 +0800
parents b8208506322e
children 3873b39c4de6
line wrap: on
line diff
--- a/packet.c	Thu Mar 13 23:08:47 2014 +0800
+++ b/packet.c	Thu Mar 13 23:50:09 2014 +0800
@@ -151,7 +151,7 @@
 	}
 
 #endif
-	now = time(NULL);
+	now = monotonic_now();
 	ses.last_trx_packet_time = now;
 
 	if (!all_ignore) {