Merge pull request #73 from ImperadorSid/fix-disabled-weather
Fix blocking loop when weather is not enabled
This commit is contained in:
commit
85ce8a8b4a
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