diff process-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 a0819ecfee0b
line wrap: on
line diff
--- a/process-packet.c	Thu Mar 13 23:08:47 2014 +0800
+++ b/process-packet.c	Thu Mar 13 23:50:09 2014 +0800
@@ -52,7 +52,7 @@
 
 	ses.lastpacket = type;
 
-	ses.last_packet_time = time(NULL);
+	ses.last_packet_time = monotonic_now();
 
 	/* These packets we can receive at any time */
 	switch(type) {