summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-08-09 09:42:40 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-08-09 10:20:39 +0200
commit927706715bd91cc5cd681f29a6c643dc7d16047c (patch)
tree99b2038e455786daeb5ad3fe70009349ce93d36b
parent21f797058c07139e128e0b10850e921a2e982ad0 (diff)
libmbim-glib,proxy: don't acquire device context during untrack
Because if the context was never created, we would be creating it at this point, and it wouldn't make sense to do so; e.g.: [Debug] [/dev/cdc-wdm1] unexpected port hangup! [Debug] [/dev/cdc-wdm1] channel destroyed [Debug] Initial device subscribe list... [Debug] [service 0] a289cc33-bcbb-8b4f-b6b0-133ec2aae6df (basic-connect) [Debug] [service 0] 11 CIDs enabled [Debug] [service 0] [cid 0] 2 (subscriber-ready-status) [Debug] [service 0] [cid 1] 3 (radio-state)
-rw-r--r--src/libmbim-glib/mbim-proxy.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libmbim-glib/mbim-proxy.c b/src/libmbim-glib/mbim-proxy.c
index da7e250..e59d32c 100644
--- a/src/libmbim-glib/mbim-proxy.c
+++ b/src/libmbim-glib/mbim-proxy.c
@@ -1367,12 +1367,9 @@ static void
untrack_device (MbimProxy *self,
MbimDevice *device)
{
- GList *l;
- GList *to_remove = NULL;
- DeviceContext *ctx;
+ GList *l;
+ GList *to_remove = NULL;
- ctx = device_context_get (device);
- g_assert (ctx);
if (!g_list_find (self->priv->devices, device))
return;