[polari] AccountsMonitor: complete the async call to set the presence



commit 6dd63837c29720b4d9327f32c28fe312e84cb749
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sat Feb 1 21:09:59 2014 +0100

    AccountsMonitor: complete the async call to set the presence
    
    It makes no difference because we ignore the result and we're
    about to close the app anyway, but it's more correct in theory.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723432

 src/accountsMonitor.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/accountsMonitor.js b/src/accountsMonitor.js
index e676ade..b669d12 100644
--- a/src/accountsMonitor.js
+++ b/src/accountsMonitor.js
@@ -63,7 +63,10 @@ const AccountsMonitor = new Lang.Class({
 
             this._app.hold();
             account.request_presence_async(presence, 'offline', '',
-                Lang.bind(this, function() {
+                Lang.bind(this, function(account, result) {
+                    try {
+                        account.request_presence_finish(result);
+                    } catch(e) { }
                     this._app.release();
                 }));
         }


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