[folks] bluez: Don’t warn if removing an OBEX ses sion fails due to cancellation



commit e054d029bec2af3f1e744cd407ea073df627fe32
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Fri Nov 15 11:26:49 2013 +0000

    bluez: Don’t warn if removing an OBEX session fails due to cancellation
    
    Or due to the connection being closed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712274

 backends/bluez/bluez-persona-store.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/backends/bluez/bluez-persona-store.vala b/backends/bluez/bluez-persona-store.vala
index 577258f..42a7fff 100644
--- a/backends/bluez/bluez-persona-store.vala
+++ b/backends/bluez/bluez-persona-store.vala
@@ -537,6 +537,10 @@ public class Folks.Backends.BlueZ.PersonaStore : Folks.PersonaStore
         }
       catch (IOError ie)
         {
+          /* Ignore errors from closing or cancelling. */
+          if (ie is IOError.CLOSED || ie is IOError.CANCELLED)
+              return;
+
           warning ("Couldn’t remove OBEX session ‘%s’: %s",
               session_path, ie.message);
         }


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