forked from shaba/openuds
Added exception checking on service main loop for windows
This commit is contained in:
parent
15554ab08f
commit
54a2a0cb35
@ -291,7 +291,10 @@ class UDSActorSvc(win32serviceutil.ServiceFramework, CommonService):
|
||||
pythoncom.PumpWaitingMessages()
|
||||
if counter >= 60: # Once every minute
|
||||
counter = 0
|
||||
try:
|
||||
self.checkIpsChanged()
|
||||
except Exception as e:
|
||||
logger.error('Error checking ip change: {}'.format(e))
|
||||
# In milliseconds, will break
|
||||
win32event.WaitForSingleObject(self.hWaitStop, 1000)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user