[polari] telepathyClient: Await identify command



commit e18397f357e3d888cdcb54049965e61d4a488472
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Sep 4 00:29:09 2021 +0200

    telepathyClient: Await identify command
    
    Once we retrieved the password, we just fire the identify command
    without waiting for it to complete. That works, but results in
    a warning on shutdown in case of failure, as we don't get to handle
    the promise rejection.
    
    https://gitlab.gnome.org/GNOME/polari/-/issues/189
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/233>

 src/telepathyClient.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/telepathyClient.js b/src/telepathyClient.js
index 762fbe88..8f4215c4 100644
--- a/src/telepathyClient.js
+++ b/src/telepathyClient.js
@@ -289,8 +289,9 @@ class TelepathyClient extends Tp.BaseClient {
 
         try {
             const password = await Utils.lookupIdentifyPassword(account);
-            this._sendIdentify(account, password);
+            await this._sendIdentify(account, password);
         } catch (e) {
+            console.debug(e);
             this._connectRooms(account);
         }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]