server: Reconnect if there was an error during login.
This commit is contained in:
parent
8fca7d19c7
commit
c9ef4ac086
1 changed files with 2 additions and 1 deletions
|
@ -625,7 +625,8 @@ class MatrixServer(object):
|
|||
response.request_info.type, response.status_code))
|
||||
|
||||
# TODO better error handling.
|
||||
if response.request_info.type == "sync":
|
||||
if (response.request_info.type == "sync" or
|
||||
response.request_info.type == "login"):
|
||||
self.disconnect()
|
||||
|
||||
def handle_response(self, response):
|
||||
|
|
Loading…
Add table
Reference in a new issue