Handle network errors

- Move HTTP connect/disconnect logic to networkManager
- If a talk fails due to socket error, HTTP transport error or
  nio bad response that might change, retry every 2s until success
- Clean up some leftover debug prints
This commit is contained in:
miruka
2019-04-19 16:15:21 -04:00
parent 1f04fa07cb
commit 0d7728665f
5 changed files with 51 additions and 42 deletions

View File

@@ -62,7 +62,6 @@ Rectangle {
}
if (textArea.text === "") { return }
Backend.clientManager.clients[chatPage.user_id]
.sendMarkdown(chatPage.room.room_id, textArea.text)
textArea.clear()