Avoid infinite recursion on login (#61617)

pull/61730/head
Nathaniel Case 5 years ago committed by GitHub
parent 447c7d9ff0
commit d20d10b5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save