[gupnp] context-manager: Fix inverted boot-id logic
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] context-manager: Fix inverted boot-id logic
- Date: Sat, 7 Aug 2021 18:16:00 +0000 (UTC)
commit 65e9c7407773ce65085de4e3ac03ff954e80e89c
Author: Jens Georg <mail jensge org>
Date: Sat Aug 7 20:11:24 2021 +0200
context-manager: Fix inverted boot-id logic
boot-id should only be sent when using UDA 1.1 or newer, not UDA 1.0
libgupnp/gupnp-context-manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgupnp/gupnp-context-manager.c b/libgupnp/gupnp-context-manager.c
index c4948d2..0d57fde 100644
--- a/libgupnp/gupnp-context-manager.c
+++ b/libgupnp/gupnp-context-manager.c
@@ -216,7 +216,7 @@ on_context_unavailable (GUPnPContextManager *manager,
g_list_delete_link (priv->filtered, filtered_context);
} else {
/* When UDA 1.0, ignore boot-id handling */
- if (priv->uda_version > GSSDP_UDA_VERSION_1_0) {
+ if (priv->uda_version == GSSDP_UDA_VERSION_1_0) {
return;
}
/* We have lost a context, so we need to send ssdp:update and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]