tfabris / CrowCam

A set of Bash scripts to control and maintain a YouTube live cam from a Synology NAS.
GNU General Public License v3.0
3 stars 3 forks source link

Unexpected program behavior: Reaches unreachable line. #53

Closed tfabris closed 4 years ago

tfabris commented 4 years ago

I saw this in the log:

Error System 2019-09-29 14:54:15 SYSTEM CrowCam Controller - Unexpected program behavior. This program was expected to have exited before this line was reached.

tfabris commented 4 years ago

I looked at this some, and it's a stumper. It's not the usual expected thing of needing to exit from a sub-function in Bash. I honestly didn't expect this line to get hit at all.

The line comes after the "exit 0" inside the For-Next loop where it is testing the network.

Possibilities:

I'm going to chalk it up to that latter thing for now, and keep an eye out for it.