| 476 |
} |
} |
| 477 |
else if (nfds == 0) // timeout |
else if (nfds == 0) // timeout |
| 478 |
{ |
{ |
| 479 |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time) |
| 480 |
{ |
{ |
| 481 |
break; |
break; |
| 482 |
} |
} |
| 874 |
log_error("KEY_NULL\n"); |
log_error("KEY_NULL\n"); |
| 875 |
goto cleanup; |
goto cleanup; |
| 876 |
case KEY_TIMEOUT: |
case KEY_TIMEOUT: |
| 877 |
if (time(NULL) - BBS_last_access_tm >= MAX_DELAY_TIME) |
if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time) |
| 878 |
{ |
{ |
| 879 |
log_error("User input timeout\n"); |
log_error("User input timeout\n"); |
| 880 |
goto cleanup; |
goto cleanup; |