User auth resets download error counts

This commit is contained in:
tomkat83 2016-04-13 14:34:58 +02:00
parent 7bc3ee7fdf
commit 8794f221ff
2 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ class DownloadUtils():
if certificate != 'None':
self.s.cert = certificate
def startSession(self):
def startSession(self, reset=False):
"""
User should be authenticated when this method is called (via
userclient)
@ -115,7 +115,7 @@ class DownloadUtils():
# Counters to declare PMS dead or unauthorized
# Use window variables because start of movies will be called with a
# new plugin instance - it's impossible to share data otherwise
if window('countUnauthorized') == '':
if reset is True:
window('countUnauthorized', value='0')
window('countError', value='0')

View file

@ -202,7 +202,7 @@ class UserClient(threading.Thread):
window('remapSMB%sNew' % item, value=new)
# Start DownloadUtils session
doUtils.startSession()
doUtils.startSession(reset=True)
# self.getAdditionalUsers()
# Set user preferences in settings
self.currUser = username