align with main repo

This commit is contained in:
Salvatore Giordano
2021-06-21 20:34:34 +02:00
parent 9cd88dc0eb
commit 1ecc21ca53
7 changed files with 23 additions and 27 deletions
@@ -306,7 +306,7 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
key: kStreamToken,
value: userToken,
);
await client.disconnect();
client.closeConnection();
} catch (e) {
var errorText = 'Error connecting, retry';
if (e is Map) {
@@ -317,7 +317,7 @@ class _AdvancedOptionsPageState extends State<AdvancedOptionsPage> {
_apiKeyError = errorText.toUpperCase();
});
loading = false;
await client.disconnect();
client.closeConnection();
return;
}
loading = false;