libepc r206 - in trunk: . libepc



Author: hasselmm
Date: Mon Jan 21 15:45:09 2008
New Revision: 206
URL: http://svn.gnome.org/viewvc/libepc?rev=206&view=rev

Log:
Avoid failed SOUP_IS_SERVER (server) assertions.

* libepc/publisher.c: Call soup_server_remove_handler() only,
when self->priv->server is set in epc_publisher_remove_handlers().


Modified:
   trunk/ChangeLog
   trunk/libepc/publisher.c

Modified: trunk/libepc/publisher.c
==============================================================================
--- trunk/libepc/publisher.c	(original)
+++ trunk/libepc/publisher.c	Mon Jan 21 15:45:09 2008
@@ -1083,9 +1083,12 @@
     }
 #endif
 
-  soup_server_remove_handler (self->priv->server, self->priv->contents_path);
-  soup_server_remove_handler (self->priv->server, "/list");
-  soup_server_remove_handler (self->priv->server, "/");
+  if (self->priv->server)
+    {
+      soup_server_remove_handler (self->priv->server, self->priv->contents_path);
+      soup_server_remove_handler (self->priv->server, "/list");
+      soup_server_remove_handler (self->priv->server, "/");
+    }
 }
 
 static void



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