From 3462a39050ed19a7088f4265a47580f42afdbef0 Mon Sep 17 00:00:00 2001 From: Sergey Dorofeev Date: Sun, 25 Dec 2011 21:52:00 +0400 Subject: [PATCH] Modem availability checking minor fix (don't check worktime if phone is bad) --- source/bforce/sess_call.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/bforce/sess_call.c b/source/bforce/sess_call.c index a378616..ebfec47 100644 --- a/source/bforce/sess_call.c +++ b/source/bforce/sess_call.c @@ -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;