Avoid infinite recursion on login (#61617)

This commit is contained in:
Nathaniel Case 2019-09-03 08:55:20 -04:00 committed by GitHub
parent 447c7d9ff0
commit d20d10b5c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -243,10 +243,10 @@ class Connection(NetworkConnectionBase):
self.queue_message('vvv', "ESTABLISH HTTP(S) CONNECTFOR USER: %s TO %s" %
(self._play_context.remote_user, self._url))
self.httpapi.set_become(self._play_context)
self.httpapi.login(self.get_option('remote_user'), self.get_option('password'))
self._connected = True
self.httpapi.login(self.get_option('remote_user'), self.get_option('password'))
def close(self):
'''
Close the active session to the device