[Git][NTPsec/ntpsec][master] mainloop() now breaks on non-disconnection return.

Ian Bruene gitlab at mg.gitlab.com
Tue Feb 27 17:29:42 UTC 2018


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
4c5bb149 by Ian Bruene at 2018-02-27T11:28:32-06:00
mainloop() now breaks on non-disconnection return.

- - - - -


1 changed file:

- ntpclients/ntpsnmpd.py


Changes:

=====================================
ntpclients/ntpsnmpd.py
=====================================
--- a/ntpclients/ntpsnmpd.py
+++ b/ntpclients/ntpsnmpd.py
@@ -1110,6 +1110,8 @@ def mainloop(snmpSocket, reconnectionAddr, host=None):
         if control.mainloop(True) is False:  # disconnected
             snmpSocket.close()
             snmpSocket = connect(reconnectionAddr)
+        else:  # Something else happened
+            break
 
 
 def daemonize(runfunc, *runArgs):



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/4c5bb149262f21aeaeb835fe6fe75ce69b0bfbbf

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/4c5bb149262f21aeaeb835fe6fe75ce69b0bfbbf
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180227/728df82b/attachment.html>


More information about the vc mailing list