int fs2netd_update_ban_list_do() { if (Local_timeout == -1) { Local_timeout = timer_get_seconds() + 30; } // if timeout passes then bail on stats failure if ( timer_get_seconds() > Local_timeout ) { Local_timeout = -1; return 2; } int rc = FS2NetD_GetBanList(FS2NetD_ban_list, do_full_packet); do_full_packet = false; if (rc) { Local_timeout = -1; return 1; } return 0; }
int fs2netd_update_ban_list_do() { if (timeout == -1) { timeout = timer_get_fixed_seconds() + (30 * F1_0); } // if timeout passes then bail on stats failure if ( timer_get_fixed_seconds() > timeout ) { timeout = -1; return 2; } FS2NetD_ban_list = FS2NetD_GetBanList(&FS2NetD_ban_list_count, do_full_packet); do_full_packet = 0; if ( (FS2NetD_ban_list != NULL) || (FS2NetD_ban_list_count >= 0) ) { timeout = -1; return 1; } return 0; }