[libdmapsharing] Fix code tested by dmap_av_share_serve_publish_collision_test
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdmapsharing] Fix code tested by dmap_av_share_serve_publish_collision_test
- Date: Thu, 19 Jul 2018 02:19:38 +0000 (UTC)
commit a91a3914568062fb38a540025b4d0c2364fa18c4
Author: W. Michael Petullo <mike flyn org>
Date: Wed Jul 18 22:19:03 2018 -0400
Fix code tested by dmap_av_share_serve_publish_collision_test
Signed-off-by: W. Michael Petullo <mike flyn org>
libdmapsharing/dmap-share.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libdmapsharing/dmap-share.c b/libdmapsharing/dmap-share.c
index c4602a4..853125e 100644
--- a/libdmapsharing/dmap-share.c
+++ b/libdmapsharing/dmap-share.c
@@ -235,6 +235,7 @@ dmap_share_serve (DmapShare *share, GError **error)
GSList *listening_uri_list;
SoupURI *listening_uri;
gboolean ret;
+ GError *error2 = NULL;
share->priv->server = soup_server_new (NULL, NULL);
@@ -286,11 +287,11 @@ dmap_share_serve (DmapShare *share, GError **error)
(SoupServerCallback) _ctrl_int_adapter,
share, NULL);
- ret = soup_server_listen_all (share->priv->server, desired_port, 0, error);
+ ret = soup_server_listen_all (share->priv->server, desired_port, 0, &error2);
if (ret == FALSE) {
g_debug ("Unable to start music sharing server on port %d: %s. "
- "Trying any open IPv6 port", desired_port, (*error)->message);
- g_clear_error (error);
+ "Trying any open IPv6 port", desired_port, error2->message);
+ g_error_free(error2);
ret = soup_server_listen_all (share->priv->server, SOUP_ADDRESS_ANY_PORT,
0, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]