aboutsummaryrefslogtreecommitdiff
path: root/chat_acceptor.h
diff options
context:
space:
mode:
authorBen Burwell <bburwell1@gmail.com>2013-05-01 19:25:32 -0400
committerBen Burwell <bburwell1@gmail.com>2013-05-01 19:25:32 -0400
commitda465168cadb79dc29fa086651cdd4d7e4ab9cbf (patch)
treeb7c4265ddd69a3f90c46cc5f5cac4ce0508803e7 /chat_acceptor.h
parentebfcf94471a78dd48d6a5a63c0d40da3a67c2486 (diff)
Request timeout recognized by receiver
Diffstat (limited to 'chat_acceptor.h')
-rw-r--r--chat_acceptor.h3
1 files changed, 3 insertions, 0 deletions
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;
}