Modem availability checking minor fix (don't check worktime if phone is bad)

This commit is contained in:
Sergey Dorofeev 2011-12-25 21:52:00 +04:00
parent a8cd4cee9a
commit 3462a39050

View File

@ -667,12 +667,12 @@ int call_system(s_faddr addr, const s_bforce_opts *opts)
errmsg = "don't know phone number";
gotoexit(BFERR_PHONE_UNKNOWN);
}
}
} else
if( !opts->force)
{
/*
* Is now a working time for that node/line
*/
if( !opts->force)
{
time_t unixtime = time(NULL);
struct tm *now = localtime(&unixtime);
bool goodtime = FALSE;