diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-08-09 09:42:40 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-10-01 11:58:52 +0200 |
commit | fc0c04f0c0423e21d2f48fd579d96b251f64c882 (patch) | |
tree | 47214188bc062b4d357c972600e552f979262a85 | |
parent | f345dbfff5a046e1bd0771bee631506c598f92a3 (diff) | |
download | libmbim-fc0c04f0c0423e21d2f48fd579d96b251f64c882.tar.gz |
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)
(cherry picked from commit 927706715bd91cc5cd681f29a6c643dc7d16047c)
-rw-r--r-- | src/libmbim-glib/mbim-proxy.c | 7 |
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; |