beagle r4719 - trunk/beagle/Util



Author: dbera
Date: Fri Apr 18 18:41:32 2008
New Revision: 4719
URL: http://svn.gnome.org/viewvc/beagle?rev=4719&view=rev

Log:
Catch Debian packaging bug of libgalago1.0-cil (they need to package the galago.dll.config file - its open for more than a year now).


Modified:
   trunk/beagle/Util/Galago.cs

Modified: trunk/beagle/Util/Galago.cs
==============================================================================
--- trunk/beagle/Util/Galago.cs	(original)
+++ trunk/beagle/Util/Galago.cs	Fri Apr 18 18:41:32 2008
@@ -41,11 +41,17 @@
 			Idle = 3,
 			NoStatus = -1,
 		};
-		
+
 		public static Status GetPresence (string service_id, string username)
 		{
-			if (! Galago.Global.Init ("beagle-galago-presence"))
+			try {
+				if (! Galago.Global.Init ("beagle-galago-presence"))
+					return Status.NoStatus;
+			} catch (DllNotFoundException) {
+				// Catch Debian Galago packaging bug
 				return Status.NoStatus;
+			}
+
 			service = Galago.Global.GetService (service_id, Galago.Origin.Remote, true);
 			if (service == null)
 				return Status.NoStatus;



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