From da465168cadb79dc29fa086651cdd4d7e4ab9cbf Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 1 May 2013 19:25:32 -0400 Subject: Request timeout recognized by receiver --- chat_acceptor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chat_acceptor.h') diff --git a/chat_acceptor.h b/chat_acceptor.h index cb42d75..a67374b 100644 --- a/chat_acceptor.h +++ b/chat_acceptor.h @@ -74,6 +74,9 @@ void *chat_acceptor(void *arg) { printf("\n*** CHAT REQUEST *** \n"); printf("Accept [y/n]? "); fflush(stdout); + + // update the request time + time(&chat_requested_time); respond_to_chat_request = 1; } -- cgit v1.2.3