Skip to content

Commit

Permalink
address crash of deamon upon 2nd call to getNumberOfAvailableUpdates()
Browse files Browse the repository at this point in the history
- Remove unused Requirements file from repo. (#92)
- Fix code which calls getNumberOfAvailableUpdates() after initial call at startup (#93)
  • Loading branch information
ironsheep committed Mar 29, 2023
1 parent 6ed0332 commit 7160a83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ChangeLog

Tue, 28 Mar 2023 23:24:03 -0600 v1.8.4

- Remove unused Requirements file from repo. (#92)
- Fix code which calls getNumberOfAvailableUpdates() after initial call at startup (#93)

Wed, 01 Mar 2023 15:30:03 -0700 v1.8.3

- Remove package that can't be satisfied from `requirements.txt` (#88)
Expand Down
4 changes: 2 additions & 2 deletions ISP-RPi-mqtt-daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
except ImportError:
apt_available = False

script_version = "1.8.3"
script_version = "1.8.4"
script_name = 'ISP-RPi-mqtt-daemon.py'
script_info = '{} v{}'.format(script_name, script_version)
project_name = 'RPi Reporter MQTT2HA Daemon'
Expand Down Expand Up @@ -1825,7 +1825,7 @@ def afterMQTTConnect():

if apt_available:
if timeNow > update_last_fetch_time + kUpdateCheckIntervalInSeconds:
getNumberOfAvailableUpdates()() # and count them!
getNumberOfAvailableUpdates() # and count them!

finally:
# cleanup used pins... just because we like cleaning up after us
Expand Down

0 comments on commit 7160a83

Please sign in to comment.