diff options
author | Ben Burwell <bburwell1@gmail.com> | 2013-05-01 19:25:32 -0400 |
---|---|---|
committer | Ben Burwell <bburwell1@gmail.com> | 2013-05-01 19:25:32 -0400 |
commit | da465168cadb79dc29fa086651cdd4d7e4ab9cbf (patch) | |
tree | b7c4265ddd69a3f90c46cc5f5cac4ce0508803e7 /chat_acceptor.h | |
parent | ebfcf94471a78dd48d6a5a63c0d40da3a67c2486 (diff) |
Request timeout recognized by receiver
Diffstat (limited to 'chat_acceptor.h')
-rw-r--r-- | chat_acceptor.h | 3 |
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; } |