Skip to content

Commit

Permalink
Fixed infinite registration bug introduced in #14
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Feb 29, 2016
1 parent e3282c5 commit bd64be8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions openwisp-config/files/openwisp.agent
Original file line number Diff line number Diff line change
Expand Up @@ -330,14 +330,8 @@ if [ -z "$UUID" ] || [ -z "$KEY" ]; then
# do not crash if controller can't be reached
# but retry every ($INTERVAL / 4) seconds
# (device might be unplugged, unconfigured or connecting)
while true
until register
do
register

if [ "$?" == "0" ]; then
break
fi

sleep $(expr $INTERVAL / 4)
done
fi
Expand Down

0 comments on commit bd64be8

Please sign in to comment.