Modem availability checking minor fix (don't check worktime if phone is bad)
This commit is contained in:
		
							parent
							
								
									a8cd4cee9a
								
							
						
					
					
						commit
						3462a39050
					
				| @ -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; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user