Skip to content
Snippets Groups Projects
Commit 348dc153 authored by ale's avatar ale
Browse files

always invalidate session after process loop

parent aa17e8d0
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,8 @@ class Processor(object):
n = self.full_scan()
except Exception, e:
log.error('Temporary error: %s' % e)
Session.remove()
if run_once:
break
if not n:
Session.remove()
time.sleep(period)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment