Fix blocking loop when weather is not enabled
This commit is contained in:
parent
cbf738b183
commit
3e28428880
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ main()
|
||||||
|
|
||||||
# wait unit data/weather.txt exists just to avoid errors
|
# wait unit data/weather.txt exists just to avoid errors
|
||||||
# this should almost never need to wait unless something unexpected occurs
|
# this should almost never need to wait unless something unexpected occurs
|
||||||
while [ ! -f $current_dir/../data/weather.txt ]; do
|
while $show_weather && [ ! -f $current_dir/../data/weather.txt ]; do
|
||||||
sleep 0.01
|
sleep 0.01
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue