keeping communication thread alive for MAX 24h
This commit is contained in:
parent
73a7be454b
commit
97337f06db
@ -60,7 +60,9 @@ int main(void)
|
||||
|
||||
void *communicate_thread(void *arg)
|
||||
{
|
||||
for (;;)
|
||||
const time_t startTime = time(NULL);
|
||||
|
||||
while (time(NULL) - startTime < 86400) //KEEP COMMUNICATION ALIVE FOR 24 HOURS
|
||||
{
|
||||
char *received = read_socket(*((int*) arg)); //READ
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user